On Wed, Apr 14, 2021 at 04:25:39PM -0700, Saeed Mahameed wrote: > From: Huy Nguyen <h...@nvidia.com> > > 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 <ra...@nvidia.com> > Signed-off-by: Huy Nguyen <h...@nvidia.com> > Cc: Steffen Klassert <steffen.klass...@secunet.com> > --- > include/net/xfrm.h | 1 + > net/xfrm/xfrm_output.c | 36 +++++++++++++++++++++++++++++++++++- > 2 files changed, 36 insertions(+), 1 deletion(-) > > diff --git a/include/net/xfrm.h b/include/net/xfrm.h > index c58a6d4eb610..e535700431fb 100644 > --- a/include/net/xfrm.h > +++ b/include/net/xfrm.h > @@ -1032,6 +1032,7 @@ struct sec_path { > > struct xfrm_state *xvec[XFRM_MAX_DEPTH]; > struct xfrm_offload ovec[XFRM_MAX_OFFLOAD_DEPTH]; > + u8 inner_ipproto;
This is for offload, so it should go to struct xfrm_offload. We have already 'proto' there, so it is just easy add 'inner_proto'.