]> git.baikalelectronics.ru Git - kernel.git/commit
igb/igbvf: Don't use lco_csum to compute IPv4 checksum
authorAlexander Duyck <alexander.h.duyck@intel.com>
Mon, 28 Nov 2016 15:42:23 +0000 (10:42 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Dec 2016 20:41:35 +0000 (15:41 -0500)
commit416061f10add41ad10cc809ada7d480ebc9bb893
tree42eaa01494355fa7f66bb3ac59d57cda6153e9da
parent22c959f12880f5b2a159e110e93fe7829705abd1
igb/igbvf: Don't use lco_csum to compute IPv4 checksum

In the case of IPIP and SIT tunnel frames the outer transport header
offset is actually set to the same offset as the inner transport header.
This results in the lco_csum call not doing any checksum computation over
the inner IPv4/v6 header data.

In order to account for that I am updating the code so that we determine
the location to start the checksum ourselves based on the location of the
IPv4 header and the length.

Fixes: d6abba0b3af1 ("igb/igbvf: Add support for GSO partial")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/igb/igb_main.c
drivers/net/ethernet/intel/igbvf/netdev.c