]> 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)
commit1b040da7bb407e20a2dc539c8e0cc202b7037c0f
treedf54cf71c691c9941ad3b29cda254a9ebf7ad273
parente6c1db47aefde16b8598498f8ce05848ae4a537c
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: d3d3b4718009 ("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