ixgbe: no need for esp trailer if GSO
authorShannon Nelson <shannon.nelson@oracle.com>
Fri, 16 Mar 2018 18:09:06 +0000 (11:09 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 23 Mar 2018 21:55:10 +0000 (14:55 -0700)
commit1db685e6766da5b9929043f4d60dfbb69f7c57c5
tree529bf418419615b74cc0639aad18e6e687ff2865
parent871dd09bdb02957e259ff672876b04891f356d10
ixgbe: no need for esp trailer if GSO

There is no need to calculate the trailer length if we're doing
a GSO/TSO, as there is no trailer added to the packet data.
Also, don't bother clearing the flags field as it was already
cleared earlier.

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