From: Wu Jiajun-B06378 Date: Mon, 21 May 2012 23:00:48 +0000 (+0000) Subject: gianfar:don't add FCB length to hard_header_len X-Git-Tag: v3.5-rc1~101^2~9 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=bee9e58c9e98972ac48e9748e7b89bb25dc98051;p=karo-tx-linux.git 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 Signed-off-by: David S. Miller --- 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) if (dev->features & NETIF_F_IP_CSUM || priv->device_flags & FSL_GIANFAR_DEV_HAS_TIMER) - dev->hard_header_len += GMAC_FCB_LEN; + dev->needed_headroom = GMAC_FCB_LEN; /* Program the isrg regs only if number of grps > 1 */ if (priv->num_grps > 1) {