]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit51e7d2b0e7cb05afb4b06ec1e4efe30c468e6ca8
tree0f73787c8b0b8519900cbe39684fd14d054fcf61
parente09bc10d4dfc3933bf0f49b306767671590c5fde
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