Content-Type: multipart/mixed; boundary="===============3171573265086617404==" MIME-Version: 1.0 From: Paolo Abeni To: mptcp at lists.01.org Subject: [MPTCP] Re: [PATCH v1 4/7] Squash-to: "mptcp: Write MPTCP DSS headers to outgoing data packets" Date: Thu, 09 Jan 2020 09:26:02 +0100 Message-ID: <7ca08e88e1d37d7611201a68ae52ed791324eaba.camel@redhat.com> In-Reply-To: alpine.OSX.2.21.2001081627070.27921@fepiepan-mobl.amr.corp.intel.com X-Status: X-Keywords: X-UID: 3305 --===============3171573265086617404== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Wed, 2020-01-08 at 16:28 -0800, Mat Martineau wrote: > On Wed, 8 Jan 2020, Paolo Abeni wrote: > = > > use 'is_tcp' to check for TCP fallback instead of mp_capable (and later > > mp_join). > > = > > Suggested-by: Mat Martineau > > Signed-off-by: Paolo Abeni > > --- > > net/mptcp/options.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > = > > diff --git a/net/mptcp/options.c b/net/mptcp/options.c > > index c9b5f37db63b..25a46420b06d 100644 > > --- a/net/mptcp/options.c > > +++ b/net/mptcp/options.c > > @@ -303,7 +303,7 @@ bool mptcp_established_options(struct sock *sk, str= uct sk_buff *skb, > > unsigned int opt_size =3D 0; > > bool ret =3D false; > > = > > - if (!mptcp_subflow_ctx(sk)->mp_capable) > > + if (!tcp_sk(sk)->is_mptcp) > > return false; > = > is_mptcp is already checked by the caller (tcp_established_options()) - = > maybe better to just delete this check? Indeed! I missed that, thanks! Will do in the next iteration. Thanks, Paolo --===============3171573265086617404==--