Linux kernel -stable discussions
 help / color / mirror / Atom feed
From: Abdul Wasey <w453y.me@gmail.com>
To: Matthieu Baerts <matttbe@kernel.org>, gang.yan@linux.dev
Cc: mptcp@lists.linux.dev, Mat Martineau <martineau@kernel.org>,
	Geliang Tang <geliang@kernel.org>,
	Paolo Abeni <pabeni@redhat.com>,
	"Mohit P. Tahiliani" <tahiliani@nitk.edu.in>,
	stable@vger.kernel.org
Subject: Re: [PATCH mptcp-net v9 1/2] mptcp: pm: in-kernel: fullmesh: skip closed subflows
Date: Thu, 26 Nov 2026 15:29:27 +0000	[thread overview]
Message-ID: <20261126152927.3924317-1-w453y.me@gmail.com> (raw)
In-Reply-To: <c9eb1633-ea90-4b86-b7d5-dc3c7ba2bf1d@kernel.org>

Hi Gang, Matthieu,

Thank you both for the review!

On 26/11/2026 16:09, Matthieu Baerts wrote:
> On 26/11/2026 16:01, gang.yan@linux.dev wrote:
>>> +/* Closed subflows can stay in the conn_list, e.g. the initial one: their
>>> + * addresses and IDs are not reliable, possibly even reset.
>>> + */
>>
>> What about dropping this comment here?
>
> +1

Sure, I will drop it in v10.

>>> + /* The initial subflow can be closed: like fill_remote_addr(), use the
>>> + * remote address of the MPTCP socket for the remote ID 0.
>>> + */
>
> While at it, you can short this comment to something like:
>
>  /* If the initial subflow is closed, use fill_remote_addr */

OK, will do.

>> Another question, why don't you just use 'full_remote_addr' here, like:
>> '''
>>   if (!test_bit(0, unavail_id) && i < addrs_size &&
>>             msk->pm.extra_subflows < limit_extra_subflows)
>>         i += fill_remote_addr(msk, local, &addrs[i]);
>> '''
>>
>> It hasn't been tested, just wondering if there is a specific reason to keep
>> the duplication here, as I would rather reuse the existing code.
>
> Good idea to try this!

No specific reason, I just didn't think of calling it from there.
fill_remote_addr() already checks remote_deny_join_id0 and the address
family, increments extra_subflows, and returns the address with ID 0, so
it does the same thing. I will use it in v10, and run the tests again
with it, with and without the fix.

I will wait for the netdev review of v9 before sending v10.

Thanks,
Abdul Wasey

  reply	other threads:[~2026-11-26 15:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20261126101818.3916631-1-w453y.me@gmail.com>
2026-11-26 10:18 ` [PATCH mptcp-net v9 1/2] mptcp: pm: in-kernel: fullmesh: skip closed subflows Abdul Wasey
2026-11-26 15:01   ` gang.yan
2026-11-26 15:09     ` Matthieu Baerts
2026-11-26 15:29       ` Abdul Wasey [this message]
2026-11-26 10:18 ` [PATCH mptcp-net v9 2/2] selftests: mptcp: join: re-add the initial subflow endp with fullmesh Abdul Wasey

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=20261126152927.3924317-1-w453y.me@gmail.com \
    --to=w453y.me@gmail.com \
    --cc=gang.yan@linux.dev \
    --cc=geliang@kernel.org \
    --cc=martineau@kernel.org \
    --cc=matttbe@kernel.org \
    --cc=mptcp@lists.linux.dev \
    --cc=pabeni@redhat.com \
    --cc=stable@vger.kernel.org \
    --cc=tahiliani@nitk.edu.in \
    /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