diff options
-rw-r--r-- | drivers/net/gianfar.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/gianfar.c b/drivers/net/gianfar.c index 9057a1df8e94..40756dc68a10 100644 --- a/drivers/net/gianfar.c +++ b/drivers/net/gianfar.c | |||
@@ -1166,11 +1166,11 @@ static int gfar_enet_open(struct net_device *dev) | |||
1166 | return err; | 1166 | return err; |
1167 | } | 1167 | } |
1168 | 1168 | ||
1169 | static inline struct txfcb *gfar_add_fcb(struct sk_buff *skb, struct txbd8 *bdp) | 1169 | static inline struct txfcb *gfar_add_fcb(struct sk_buff *skb) |
1170 | { | 1170 | { |
1171 | struct txfcb *fcb = (struct txfcb *)skb_push (skb, GMAC_FCB_LEN); | 1171 | struct txfcb *fcb = (struct txfcb *)skb_push (skb, GMAC_FCB_LEN); |
1172 | 1172 | ||
1173 | memset(fcb, 0, GMAC_FCB_LEN); | 1173 | cacheable_memzero(fcb, GMAC_FCB_LEN); |
1174 | 1174 | ||
1175 | return fcb; | 1175 | return fcb; |
1176 | } | 1176 | } |
@@ -1233,14 +1233,14 @@ static int gfar_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
1233 | 1233 | ||
1234 | /* Set up checksumming */ | 1234 | /* Set up checksumming */ |
1235 | if (CHECKSUM_PARTIAL == skb->ip_summed) { | 1235 | if (CHECKSUM_PARTIAL == skb->ip_summed) { |
1236 | fcb = gfar_add_fcb(skb, txbdp); | 1236 | fcb = gfar_add_fcb(skb); |
1237 | status |= TXBD_TOE; | 1237 | status |= TXBD_TOE; |
1238 | gfar_tx_checksum(skb, fcb); | 1238 | gfar_tx_checksum(skb, fcb); |
1239 | } | 1239 | } |
1240 | 1240 | ||
1241 | if (priv->vlgrp && vlan_tx_tag_present(skb)) { | 1241 | if (priv->vlgrp && vlan_tx_tag_present(skb)) { |
1242 | if (unlikely(NULL == fcb)) { | 1242 | if (unlikely(NULL == fcb)) { |
1243 | fcb = gfar_add_fcb(skb, txbdp); | 1243 | fcb = gfar_add_fcb(skb); |
1244 | status |= TXBD_TOE; | 1244 | status |= TXBD_TOE; |
1245 | } | 1245 | } |
1246 | 1246 | ||