bnx2x: add gro_check
authorDmitry Kravkov <dmitry@broadcom.com>
Mon, 20 Feb 2012 09:59:11 +0000 (09:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Feb 2012 00:34:08 +0000 (19:34 -0500)
commitfe603b4d680a2bba9d8c6d4267450fcf295f30d1
tree9a95941a880b25f703eac83f444f2f92ea0a9cd0
parente65de0716f4fb72b09fb37f603b71f4eabe18322
bnx2x: add gro_check

The patch provides workaround for BUG in FW 7.2.16,
which in GRO mode may miscalculate buffer and
place on SGE one frag less than it could.
It may happen only for some MTUs, we mark these MTUs
with gro_check flag during device initialization or
MTU change.

Next FW should include fix for the issue and the
patch could be reverted.

Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x.h
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c