]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: fix ipsec trailer length
authorShannon Nelson <shannon.nelson@oracle.com>
Thu, 22 Feb 2018 19:09:56 +0000 (11:09 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 12 Mar 2018 17:44:59 +0000 (10:44 -0700)
commit58fbbed2069389d3c9483cd2e197508b0e60fc86
treed0769df874b68be3da2e8c5e445dde077654a9a0
parent37776db0e634abf5a8cc6e3b0906e574d488abe3
ixgbe: fix ipsec trailer length

Fix up the Tx trailer length calculation.  We can't believe the
trailer len from the xstate information because it was calculated
before the packet was put together and padding added.  This bit
of code finds the padding value in the trailer, adds it to the
authentication length, and saves it so later we can put it into
the Tx descriptor to tell the device where to stop the checksum
calculation.

Fixes: 9c3bcdd912f0 ("ixgbe: process the Tx ipsec offload")
Signed-off-by: Shannon Nelson <shannon.nelson@oracle.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c