net/xfrm: Add inner_ipproto into sec_path
authorHuy Nguyen <huyn@nvidia.com>
Mon, 14 Jun 2021 14:33:48 +0000 (17:33 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 22 Jun 2021 22:24:32 +0000 (15:24 -0700)
commitfa4535238fb5f306f95de89371a993057b32b2a4
tree0f73787c8b0b8519900cbe39684fd14d054fcf61
parentdd7cf00f87dc6cba8dd87dd6c9a5f18f187976ff
net/xfrm: Add inner_ipproto into sec_path

The inner_ipproto saves the inner IP protocol of the plain
text packet. This allows vendor's IPsec feature making offload
decision at skb's features_check and configuring hardware at
ndo_start_xmit.

For example, ConnectX6-DX IPsec device needs the plaintext's
IP protocol to support partial checksum offload on
VXLAN/GENEVE packet over IPsec transport mode tunnel.

Signed-off-by: Raed Salem <raeds@nvidia.com>
Signed-off-by: Huy Nguyen <huyn@nvidia.com>
Cc: Steffen Klassert <steffen.klassert@secunet.com>
Acked-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
include/net/xfrm.h
net/xfrm/xfrm_output.c