]> 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)
commitd2b81ef7dd48eb2398f93dab7ac4c67ca3bef175
treeb1fafef828cc1bad1f283ad682d9921145f22d94
parent70c040db70ff465e197ce6309656290111e5dd4b
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