Netdev List
 help / color / mirror / Atom feed
From: Matthieu Baerts <matttbe@kernel.org>
To: Eric Dumazet <edumazet@google.com>
Cc: Mat Martineau <martineau@kernel.org>,
	Geliang Tang <geliang@kernel.org>,
	"David S. Miller" <davem@davemloft.net>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Simon Horman <horms@kernel.org>,
	netdev@vger.kernel.org, mptcp@lists.linux.dev,
	linux-kernel@vger.kernel.org, Jonathan Corbet <corbet@lwn.net>,
	Shuah Khan <skhan@linuxfoundation.org>,
	linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org
Subject: Re: [PATCH net-next 04/11] mptcp: introduce add_addr_v6_port_drop_ts sysctl knob
Date: Mon, 1 Jun 2026 16:04:20 +1000	[thread overview]
Message-ID: <4af33a1a-2bd5-4be7-90f0-2bb3bc88fa81@kernel.org> (raw)
In-Reply-To: <CANn89iL=os-60kDKqMDdyiXuPF5CG=eejS0vmthwpDGXz_Bp8A@mail.gmail.com>

Hi Eric,

On 01/06/2026 15:44, Eric Dumazet wrote:
> On Sun, May 31, 2026 at 10:24 PM Matthieu Baerts (NGI0)
> <matttbe@kernel.org> wrote:
>>
>> This sysctl is going to be used in the next commits to drop TCP
>> timestamps option, to be able to send an ADD_ADDR with a v6 IP address
>> and a port number. It is enabled by default.
>>
>> This knob is explicitly disabled in the MPTCP Join selftest, with the
>> "signal addr list progresses after tx drop" subtest, to continue
>> verifying the previous behaviour where the ADD_ADDR is not sent due to a
>> lack of space.
>>
>> While at it, move syn_retrans_before_tcp_fallback down from struct
>> mptcp_pernet, to avoid creating another 3 bytes hole.
>>
>> Reviewed-by: Mat Martineau <martineau@kernel.org>
>> Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
> 
> ...
> 
>>  };
>> @@ -94,6 +95,11 @@ const char *mptcp_get_scheduler(const struct net *net)
>>         return mptcp_get_pernet(net)->scheduler;
>>  }
>>
>> +unsigned int mptcp_add_addr_v6_port_drop_ts(const struct net *net)
>> +{
>> +       return mptcp_get_pernet(net)->add_addr_v6_port_drop_ts;
>> +}
> 
> Please use READ_ONCE() over sysctls.
> This will avoid future patches from KCSAN bots.

Good point, I will do that.

I see READ_ONCE() should be used over all other MPTCP sysctls. I can
send fixes to net for those.

Cheers,
Matt
-- 
Sponsored by the NGI0 Core fund.


  reply	other threads:[~2026-06-01  6:04 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-01  5:22 [PATCH net-next 00/11] mptcp: pm: drop TCP TS with ADD_ADDRv6 + port Matthieu Baerts (NGI0)
2026-06-01  5:22 ` [PATCH net-next 01/11] mptcp: options: suboptions sizes can be negative Matthieu Baerts (NGI0)
2026-06-01  5:22 ` [PATCH net-next 02/11] mptcp: pm: avoid computing rm_addr size twice Matthieu Baerts (NGI0)
2026-06-01  5:22 ` [PATCH net-next 03/11] mptcp: pm: avoid computing add_addr " Matthieu Baerts (NGI0)
2026-06-01  5:22 ` [PATCH net-next 04/11] mptcp: introduce add_addr_v6_port_drop_ts sysctl knob Matthieu Baerts (NGI0)
2026-06-01  5:44   ` Eric Dumazet
2026-06-01  6:04     ` Matthieu Baerts [this message]
2026-06-01  5:22 ` [PATCH net-next 05/11] tcp: allow mptcp to drop TS for some packets Matthieu Baerts (NGI0)
2026-06-01  6:04   ` Eric Dumazet
2026-06-01  6:52     ` Matthieu Baerts
2026-06-01  7:26       ` Eric Dumazet
2026-06-01  7:36         ` Matthieu Baerts
2026-06-01  8:07         ` Matthieu Baerts
2026-06-01  5:22 ` [PATCH net-next 06/11] mptcp: pm: drop TCP TS with ADD_ADDRv6 + port Matthieu Baerts (NGI0)
2026-06-01  5:22 ` [PATCH net-next 07/11] selftests: mptcp: validate ADD_ADDRv6 + TS " Matthieu Baerts (NGI0)
2026-06-01  5:22 ` [PATCH net-next 08/11] selftests: mptcp: always check sent/dropped ADD_ADDRs Matthieu Baerts (NGI0)
2026-06-01  5:22 ` [PATCH net-next 09/11] selftests: mptcp: connect: test name in pcap file Matthieu Baerts (NGI0)
2026-06-01  5:22 ` [PATCH net-next 10/11] selftests: mptcp: simult_flow: " Matthieu Baerts (NGI0)
2026-06-01  5:22 ` [PATCH net-next 11/11] selftests: mptcp: pcap: drop most of the payload Matthieu Baerts (NGI0)

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=4af33a1a-2bd5-4be7-90f0-2bb3bc88fa81@kernel.org \
    --to=matttbe@kernel.org \
    --cc=corbet@lwn.net \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=geliang@kernel.org \
    --cc=horms@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=martineau@kernel.org \
    --cc=mptcp@lists.linux.dev \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=skhan@linuxfoundation.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox