]> git.baikalelectronics.ru Git - kernel.git/commit
i40e/i40evf: Fix TSO checksum pseudo-header adjustment
authorAlexander Duyck <aduyck@mirantis.com>
Fri, 18 Mar 2016 23:06:47 +0000 (16:06 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 6 Apr 2016 03:34:51 +0000 (20:34 -0700)
commitd0a2e82ea5433a532c80680b27482cf7c77fe576
treecf18a35e0ceb40114c2cde254ec47d230056fd5c
parent03bf7558a8805b81853668bfa250e00d7bd068eb
i40e/i40evf: Fix TSO checksum pseudo-header adjustment

With IPv4 and IPv6 now using the same format for checksums based on the
length of the frame we need to update the i40e and i40evf drivers so that
they correctly account for lengths greater than or equal to 64K.

With this patch the driver should now correctly update checksums for frames
up to 16776960 in length which should be more than large enough for all
possible TSO frames in the near future.

Signed-off-by: Alexander Duyck <aduyck@mirantis.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_txrx.c
drivers/net/ethernet/intel/i40evf/i40e_txrx.c