]> 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)
commit9c600a98473cda216fa2d7a78d4a4418c8cb2cd6
treed0769df874b68be3da2e8c5e445dde077654a9a0
parent8fb4672cf04d9dae470e28892a0e3a65f6006911
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: d3d3b4718009 ("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