Re: [PATCH net 2/3] net/xfrm: Add inner_ipproto into sec_path

2021-04-15 Thread Jakub Kicinski
On Wed, 14 Apr 2021 16:25:39 -0700 Saeed Mahameed wrote: > +static void get_inner_ipproto(struct sk_buff *skb, struct sec_path *sp) > +{ > + const struct ethhdr *eth; > + > + if (!skb->inner_protocol) > + return; > + > + if (skb->inner_protocol_type == ENCAP_TYPE_IPPROTO) {

Re: [PATCH net 2/3] net/xfrm: Add inner_ipproto into sec_path

2021-04-15 Thread Steffen Klassert
On Wed, Apr 14, 2021 at 04:25:39PM -0700, Saeed Mahameed wrote: > From: Huy Nguyen > > 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. > >

[PATCH net 2/3] net/xfrm: Add inner_ipproto into sec_path

2021-04-14 Thread Saeed Mahameed
From: Huy Nguyen 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 supp