[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CADsK2K8ni4mttES0TPjV8gJAK7ge53Sstmj3Ep6PNLdxf1AOWg@mail.gmail.com>
Date: Thu, 21 Nov 2024 13:52:24 -0800
From: Feng Wang <wangfe@...gle.com>
To: Paolo Abeni <pabeni@...hat.com>
Cc: netdev@...r.kernel.org, steffen.klassert@...unet.com,
antony.antony@...unet.com, leonro@...dia.com
Subject: Re: [PATCH] xfrm: add SA information to the offloaded packet when
if_id is set
Hi Paolo,
Thanks for your comments, I will upload a new patch to address your
comments soon.
Feng
On Thu, Nov 21, 2024 at 12:09 AM Paolo Abeni <pabeni@...hat.com> wrote:
>
> Hi,
>
> On 11/19/24 23:04, Feng Wang wrote:
> > From: wangfe <wangfe@...gle.com>
>
> Unneeded, since the author (you) matches the submitter email address
> (yours).
>
> BTW please include a patch revision number into the subj prefix to help
> reviewers.
>
> > @@ -240,6 +256,7 @@ bool nsim_ipsec_tx(struct netdevsim *ns, struct sk_buff *skb)
> > struct xfrm_state *xs;
> > struct nsim_sa *tsa;
> > u32 sa_idx;
> > + struct xfrm_offload *xo;
>
> This is network driver code, please respect the reverse x-mas tree order
> above.
>
> > diff --git a/net/xfrm/xfrm_output.c b/net/xfrm/xfrm_output.c
> > index e5722c95b8bb..59ac45f0c4ac 100644
> > --- a/net/xfrm/xfrm_output.c
> > +++ b/net/xfrm/xfrm_output.c
> > @@ -706,6 +706,8 @@ int xfrm_output(struct sock *sk, struct sk_buff *skb)
> > struct xfrm_state *x = skb_dst(skb)->xfrm;
> > int family;
> > int err;
> > + struct xfrm_offload *xo;
> > + struct sec_path *sp;
>
> I see the xfrm subtree is more relaxed with the reverse x-mas tree
> order, but for consistency I would respect it even here.
>
> Cheers,
>
> Paolo
>
Powered by blists - more mailing lists