From: Yuval Mintz Date: Thu, 25 Jun 2015 12:19:29 +0000 (+0300) Subject: bnx2x: Fix linearization for encapsulated packets X-Git-Tag: omap-for-v4.2/fixes-rc1^2~57^2~25^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=592b9b8d687827086344705631494e5f232bee50;p=pandora-kernel.git bnx2x: Fix linearization for encapsulated packets 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 Signed-off-by: Ariel Elior Signed-off-by: David S. Miller --- Reading git-diff-tree failed