]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: allow IPsec Tx offload in VEPA mode
authorShannon Nelson <shannon.nelson@oracle.com>
Thu, 4 Oct 2018 23:28:52 +0000 (16:28 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 7 Nov 2018 17:47:00 +0000 (09:47 -0800)
commit6773908a760912d526e20c665b51e8e3fcd894b3
treedab15dbeebf13ba7e150f87c000545454bfcbcc3
parentc7b425b756840811bbf5a6f0f6e596165ebb875a
ixgbe: allow IPsec Tx offload in VEPA mode

When it's possible that the PF might end up trying to send a
packet to one of its own VFs, we have to forbid IPsec offload
because the device drops the packets into a black hole.
See commit 47fb348f69c9 ("ixgbe: disallow IPsec Tx offload
when in SR-IOV mode") for more info.

This really is only necessary when the device is in the default
VEB mode.  If instead the device is running in VEPA mode,
the packets will go through the encryption engine and out the
MAC/PHY as normal, and get "hairpinned" as needed by the switch.

So let's not block IPsec offload when in VEPA mode.  To get
there with the ixgbe device, use the handy 'bridge' command:
bridge link set dev eth1 hwmode vepa

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