From: Florian Westphal <fw at strlen.de>
To: mptcp at lists.01.org
Subject: [MPTCP] Re: [PATCH MPTCP 3/5] mptcp: add mptcp reset option support
Date: Thu, 12 Nov 2020 10:56:07 +0100 [thread overview]
Message-ID: <20201112095607.GL23619@breakpoint.cc> (raw)
In-Reply-To: CA+WQbws1X2nXF9bGg7-tze+RjXHxdz5WYvqKWK2xU=bDHAisVQ@mail.gmail.com
[-- Attachment #1: Type: text/plain, Size: 1548 bytes --]
Geliang Tang <geliangtang(a)gmail.com> wrote:
> > diff --git a/include/net/tcp.h b/include/net/tcp.h
> > index c0fef9e9ba20..899f87346b49 100644
> > --- a/include/net/tcp.h
> > +++ b/include/net/tcp.h
> > @@ -193,6 +193,8 @@ void tcp_time_wait(struct sock *sk, int state, int timeo);
> > #define TCPOPT_FASTOPEN_MAGIC 0xF989
> > #define TCPOPT_SMC_MAGIC 0xE2D4C3D9
> >
> > +/* MPTCP suboptions used in TCP */
> > +#define MPTCPOPT_RST 8
>
> And define MPTCPOPT_RST in net/mptcp/protocol.h, together with all other
> MPTCP suboptions ... ...
I wanted to avoid entanglements between mptcp and the tcp reset path.
> > @@ -216,6 +218,7 @@ void tcp_time_wait(struct sock *sk, int state, int timeo);
> > #define TCPOLEN_MD5SIG_ALIGNED 20
> > #define TCPOLEN_MSS_ALIGNED 4
> > #define TCPOLEN_EXP_SMC_BASE_ALIGNED 8
> > +#define TCPOLEN_MPTCP_RST 4
>
> And define TCPOLEN_MPTCP_RST in include/net/mptcp.h ... ...
Its needed for sizing of the on-stack option array.
Placing it in include/net/mptcp.h means i would need to include
that from tcp stack, which then brings other baggage with it.
I wanted to avoid that.
> > + rep.opt[0] = mptcp_option(MPTCPOPT_RST, TCPOLEN_MPTCP_RST,
> > + flags, reason);
>
> And use mptcp_option's wrapper function here ... ...
I wanted to avoid a function for what is 'u32 opt[0] = magic | reason'.
I will defer to Matthieu/Mat; I do not have a strong preference.
next reply other threads:[~2020-11-12 9:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-12 9:56 Florian Westphal [this message]
-- strict thread matches above, loose matches on Subject: below --
2020-11-12 9:45 [MPTCP] Re: [PATCH MPTCP 3/5] mptcp: add mptcp reset option support Florian Westphal
2020-11-12 1:30 Mat Martineau
2020-11-09 4:55 Geliang Tang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201112095607.GL23619@breakpoint.cc \
--to=unknown@example.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.