Skip to content

Commit

Permalink
gianfar:don't add FCB length to hard_header_len
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wu Jiajun-B06378 authored and davem330 committed May 22, 2012
1 parent 72c04af commit bee9e58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/freescale/gianfar.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit bee9e58

Please sign in to comment.