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)
commit0ae418e6e25baadf3b75c7572d5b4fa5b749e1e3
treed0769df874b68be3da2e8c5e445dde077654a9a0
parent68c1fb2d30209757f9a9f6e5ea587ea3bb8724c0
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: 592594704761 ("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