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)
commitf39b683d35dfa93a58f1b400a8ec0ff81296b37c
treedf54cf71c691c9941ad3b29cda254a9ebf7ad273
parenta21b7f0cff1906a93a0130b74713b15a0b36481d
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: 592594704761 ("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