diff options
author | Wu Jiajun-B06378 <B06378@freescale.com> | 2012-05-21 19:00:48 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-22 15:18:43 -0400 |
commit | bee9e58c9e98972ac48e9748e7b89bb25dc98051 (patch) | |
tree | 648ad832177ab02cf01dc2002fff369a0f50020f /drivers/net/ethernet | |
parent | 72c04af9a2d57b7945cf3de8e71461bd80695d50 (diff) |
gianfar:don't add FCB length to hard_header_len
FCB(Frame Control Block) isn't the part of netdev hard header.
Add FCB to hard_header_len will make GRO fail at MAC comparision stage.
Signed-off-by: Jiajun Wu <b06378@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/freescale/gianfar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/freescale/gianfar.c b/drivers/net/ethernet/freescale/gianfar.c index 1adb0245b9dd..0741aded9eb0 100644 --- a/drivers/net/ethernet/freescale/gianfar.c +++ b/drivers/net/ethernet/freescale/gianfar.c | |||
@@ -1082,7 +1082,7 @@ static int gfar_probe(struct platform_device *ofdev) | |||
1082 | 1082 | ||
1083 | if (dev->features & NETIF_F_IP_CSUM || | 1083 | if (dev->features & NETIF_F_IP_CSUM || |
1084 | priv->device_flags & FSL_GIANFAR_DEV_HAS_TIMER) | 1084 | priv->device_flags & FSL_GIANFAR_DEV_HAS_TIMER) |
1085 | dev->hard_header_len += GMAC_FCB_LEN; | 1085 | dev->needed_headroom = GMAC_FCB_LEN; |
1086 | 1086 | ||
1087 | /* Program the isrg regs only if number of grps > 1 */ | 1087 | /* Program the isrg regs only if number of grps > 1 */ |
1088 | if (priv->num_grps > 1) { | 1088 | if (priv->num_grps > 1) { |