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)
commitea2465af3bbfa7994d134a401503966ee98710b6
treeb1fafef828cc1bad1f283ad682d9921145f22d94
parent6d3c348a63685410b12bf961b97063efeef2f901
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