diff options
Diffstat (limited to 'drivers/net/gianfar.c')
-rw-r--r-- | drivers/net/gianfar.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/gianfar.c b/drivers/net/gianfar.c index 44cbf2622b46..6a38800be3f1 100644 --- a/drivers/net/gianfar.c +++ b/drivers/net/gianfar.c | |||
@@ -1310,8 +1310,10 @@ static int gfar_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
1310 | 1310 | ||
1311 | base = priv->tx_bd_base; | 1311 | base = priv->tx_bd_base; |
1312 | 1312 | ||
1313 | /* make space for additional header */ | 1313 | /* make space for additional header when fcb is needed */ |
1314 | if (skb_headroom(skb) < GMAC_FCB_LEN) { | 1314 | if (((skb->ip_summed == CHECKSUM_PARTIAL) || |
1315 | (priv->vlgrp && vlan_tx_tag_present(skb))) && | ||
1316 | (skb_headroom(skb) < GMAC_FCB_LEN)) { | ||
1315 | struct sk_buff *skb_new; | 1317 | struct sk_buff *skb_new; |
1316 | 1318 | ||
1317 | skb_new = skb_realloc_headroom(skb, GMAC_FCB_LEN); | 1319 | skb_new = skb_realloc_headroom(skb, GMAC_FCB_LEN); |