]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: Fix secpath usage for IPsec TX offload.
authorSteffen Klassert <steffen.klassert@secunet.com>
Thu, 12 Sep 2019 11:01:44 +0000 (13:01 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Sep 2019 11:43:14 +0000 (12:43 +0100)
commit87f98c40f4df22fa40857a73175ae38c0c51ad31
treedf54cf71c691c9941ad3b29cda254a9ebf7ad273
parentf1a1f65b3ca5f9116e4e4589977fb9069ae9e741
ixgbe: Fix secpath usage for IPsec TX offload.

The ixgbe 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.

Fixes: 9c3bcdd912f0 ("ixgbe: process the Tx ipsec offload")
Reported-by: Michael Marley <michael@michaelmarley.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c