[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAL+tcoDgYh3JVHOv9FGKA_dTjoDBD0CK+E4284RQNy6dUFbm2Q@mail.gmail.com>
Date: Tue, 16 Apr 2024 16:19:44 +0800
From: Jason Xing <kerneljasonxing@...il.com>
To: Paolo Abeni <pabeni@...hat.com>
Cc: edumazet@...gle.com, dsahern@...nel.org, matttbe@...nel.org,
martineau@...nel.org, geliang@...nel.org, kuba@...nel.org,
davem@...emloft.net, rostedt@...dmis.org, mhiramat@...nel.org,
mathieu.desnoyers@...icios.com, atenart@...nel.org, mptcp@...ts.linux.dev,
netdev@...r.kernel.org, Jason Xing <kernelxing@...cent.com>
Subject: Re: [PATCH net-next v4 5/6] mptcp: support rstreason for passive reset
On Tue, Apr 16, 2024 at 4:04 PM Paolo Abeni <pabeni@...hat.com> wrote:
>
> On Thu, 2024-04-11 at 19:56 +0800, Jason Xing wrote:
> > diff --git a/net/mptcp/subflow.c b/net/mptcp/subflow.c
> > index ba0a252c113f..25eaad94cb79 100644
> > --- a/net/mptcp/subflow.c
> > +++ b/net/mptcp/subflow.c
> > @@ -308,8 +308,12 @@ static struct dst_entry *subflow_v4_route_req(const struct sock *sk,
> > return dst;
> >
> > dst_release(dst);
> > - if (!req->syncookie)
> > - tcp_request_sock_ops.send_reset(sk, skb, SK_RST_REASON_NOT_SPECIFIED);
> > + if (!req->syncookie) {
> > + struct mptcp_ext *mpext = mptcp_get_ext(skb);
> > + enum sk_rst_reason reason = convert_mptcp_reason(mpext->reset_reason);
>
> Since you already have to repost, very minor nit: even the above
> strictly speaking does not respect the reverse xmass tree.
>
> enum sk_rst_reason reason;
>
> reason = convert_mptcp_reason(mpext->reset_reason);
> > + tcp_request_sock_ops.send_reset(sk, skb, reason);
Thanks, I will update this too.
>
> Cheers,
>
> Paolo
>
Powered by blists - more mailing lists