From: Matthieu Baerts <matttbe@kernel.org>
To: Mat Martineau <martineau@kernel.org>
Cc: MPTCP Upstream <mptcp@lists.linux.dev>
Subject: Re: [PATCH mptcp-net v2 1/2] mptcp: pm: avoid sending RM_ADDR over same subflow
Date: Wed, 25 Feb 2026 13:18:19 +0100 [thread overview]
Message-ID: <886fecf3-e73c-4f23-9dc8-21a7c5aba9e4@kernel.org> (raw)
In-Reply-To: <60bfc032-effc-f85f-6e64-7af0cd3daeeb@kernel.org>
Hi Mat,
Thank you for the review!
On 25/02/2026 05:12, Mat Martineau wrote:
> On Fri, 20 Feb 2026, Matthieu Baerts (NGI0) wrote:
>
>> RM_ADDR are sent over an active subflow, the first one in the subflows
>> list. There is then a high chance the initial subflow is picked. With
>> the in-kernel PM, when an endpoint is removed, a RM_ADDR is sent, then
>> linked subflows are closed. This is done for each active MPTCP
>> connection.
>>
>> MPTCP endpoints are likely removed because the attached network is no
>> longer available or usable. In this case, it is better to avoid sending
>> this RM_ADDR over the subflow that is going to be removed, but prefer
>> sending it over another active and non stale subflow, if any.
>>
>> This modification avoids situations where the other end is not notified
>> when a subflow is no longer usable: typically when the endpoint linked
>> to the initial subflow is removed, especially on the server side.
(...)
> This is definitely an improvement over the older code, thanks! It does
> still send RM_ADDR exactly once. It could also RM_ADDR using *all*
> active non-stale subflows (any that are delivered after the first would
> be ignored). In terms of interoperability there is the risk of confusing
> the peer's path manager if it doesn't handle RM_ADDR for a non-existant
> subflow.
>
> Maybe that's more of a mptcp-next feature (if it makes sense to do at all).
I think implementing this would definitively be mptcp-next material. If
we want this, we will also need to change the way the option is added:
for the moment, the rm_list is copied in the msk, and a bit is set
before triggering the ACK, and when sending the ACK, the bit is reset.
So we would need to also record the subflow IDs that should send the
RM_ADDR, and only remove the main bit when all of subflows have sent it.
Now regarding the behaviour, I think it more likely to have concurrent
issues: maybe a subflow could be re-created or an ADD_ADDR could be
received before all RM_ADDR are transmitted, e.g. in case of bufferbloat
on one path?
> The v2 patch here is closer to the existing behavior so I'm ok with
> approving it:
>
> Reviewed-by: Mat Martineau <martineau@kernel.org>
Thanks! Is this tag also covering patch 2/2?
Cheers,
Matt
--
Sponsored by the NGI0 Core fund.
next prev parent reply other threads:[~2026-02-25 12:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-20 11:25 [PATCH mptcp-net v2 0/2] mptcp: pm: avoid sending RM_ADDR over the same subflow Matthieu Baerts (NGI0)
2026-02-20 11:25 ` [PATCH mptcp-net v2 1/2] mptcp: pm: avoid sending RM_ADDR over " Matthieu Baerts (NGI0)
2026-02-25 4:12 ` Mat Martineau
2026-02-25 12:18 ` Matthieu Baerts [this message]
2026-02-25 16:57 ` Mat Martineau
2026-02-26 7:39 ` Matthieu Baerts
2026-02-20 11:25 ` [PATCH mptcp-net v2 2/2] selftests: mptcp: join: check RM_ADDR not sent " Matthieu Baerts (NGI0)
2026-02-20 12:42 ` [PATCH mptcp-net v2 0/2] mptcp: pm: avoid sending RM_ADDR over the " MPTCP CI
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=886fecf3-e73c-4f23-9dc8-21a7c5aba9e4@kernel.org \
--to=matttbe@kernel.org \
--cc=martineau@kernel.org \
--cc=mptcp@lists.linux.dev \
/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