]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnx2x: Fix linearization for encapsulated packets
authorYuval Mintz <Yuval.Mintz@qlogic.com>
Thu, 25 Jun 2015 12:19:29 +0000 (15:19 +0300)
committerDan Duval <dan.duval@oracle.com>
Mon, 19 Oct 2015 22:04:17 +0000 (18:04 -0400)
commitec6d28bdfbfeef326fe11d0e08f1d23f4cfc3baa
tree0939a1d06d6663a7cb8464f7d5706e5d6adc504e
parent40e8020549e6ac924622ba23a1404afdf6006957
bnx2x: Fix linearization for encapsulated packets

Orabug: 22066196

Due to FW constraints, driver must make sure that transmitted SKBs will
not be too fragmented, or in the case that they are - that each 'window'
of fragments passed to the FW would contain at least an mss worth of data.

For encapsultaed packets the calculation is wrong, since it ignores the
inner headers in the calculation of the headers' length.
This could lead to a FW assertion in case of a too-fragmented encapsulated
packet.

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>
(cherry picked from commit 592b9b8d687827086344705631494e5f232bee50)

Signed-off-by: Dan Duval <dan.duval@oracle.com>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c