]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: Prevent FW assertion when using Vxlan
authorYuval Mintz <Yuval.Mintz@qlogic.com>
Fri, 18 Dec 2015 08:42:12 +0000 (10:42 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Dec 2015 21:34:32 +0000 (16:34 -0500)
commitf0604c73826a6115f5a54bc0a32a72b5a1fa8470
treeb1fafef828cc1bad1f283ad682d9921145f22d94
parentf07d7f588839825a21b2485b9fd4deef7890db15
bnx2x: Prevent FW assertion when using Vxlan

FW has a rare corner case in which a fragmented packet using lots
of frags would not be linearized, causing the FW to assert while trying
to transmit the packet.

To prevent this, we need to make sure the window of fragements containing
MSS worth of data contains 1 BD less than for regular packets due to
the additional parsing BD.

Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: Ariel Elior <Ariel.Elior@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c