]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbevf: Fix secpath usage for IPsec Tx offload
authorJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 12 Sep 2019 19:07:34 +0000 (12:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Sep 2019 13:52:10 +0000 (15:52 +0200)
commitf7fed2218680b52013f5d5b0043ef54cb9706f62
tree8d254820d274adb5a7c9f03abd63eae24f08a584
parent0a49ccafe35174b2b95d42b2361bca76ba32643f
ixgbevf: Fix secpath usage for IPsec Tx offload

Port the same fix for ixgbe to ixgbevf.

The ixgbevf driver currently does IPsec Tx offloading
based on an existing secpath. However, the secpath
can also come from the Rx side, in this case it is
misinterpreted for Tx offload and the packets are
dropped with a "bad sa_idx" error. Fix this by using
the xfrm_offload() function to test for Tx offload.

CC: Shannon Nelson <snelson@pensando.io>
Fixes: b4530d0b3083 ("ixgbevf: enable VF IPsec offload operations")
Reported-by: Jonathan Tooker <jonathan@reliablehosting.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Acked-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c