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>
This commit is contained in:
parent
e65de0716f
commit
fe603b4d68
4 changed files with 25 additions and 0 deletions
|
@ -10214,6 +10214,8 @@ static int __devinit bnx2x_init_bp(struct bnx2x *bp)
|
|||
if (CHIP_IS_E3B0(bp))
|
||||
bp->max_cos = BNX2X_MULTI_TX_COS_E3B0;
|
||||
|
||||
bp->gro_check = bnx2x_need_gro_check(bp->dev->mtu);
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue