]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: check for possible incorrect ipv6 checksum
authorShannon Nelson <shannon.nelson@intel.com>
Sat, 21 Dec 2013 05:44:46 +0000 (05:44 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 11 Jan 2014 00:30:34 +0000 (16:30 -0800)
commitfa47620648a409ee9aed5d2afb52923428bf21c4
treecd88de5cf14c4cf9feb1fc36ffbc751711a1204e
parentf1daf48e76c48147c21286893736d4d2722248bd
i40e: check for possible incorrect ipv6 checksum

If the IPV6EXADD bit is set in the Rx descriptor status, there
was an optional extension header with an alternate IP address
detected.  The HW checksum offload doesn't handle the alternate
IP address correctly so likely comes up with the wrong answer.
Thus, if the bit is set we ignore the checksum offload value.

Change-ID: I70ff8d38cdcddccf44107691cae13d0c07c284c8
Signed-off-by: Shannon Nelson <shannon.nelson@intel.com>
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Kavindya Deegala <kavindya.s.deegala@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_txrx.c
drivers/net/ethernet/intel/i40e/i40e_type.h