MPTCP Linux Development
 help / color / mirror / Atom feed
From: Matthieu Baerts <matttbe@kernel.org>
To: Geliang Tang <geliang@kernel.org>, Mat Martineau <martineau@kernel.org>
Cc: mptcp@lists.linux.dev, Geliang Tang <tanggeliang@kylinos.cn>
Subject: Re: [PATCH mptcp-next v2 1/2] mptcp: pm: userspace: drop delete_local_addr helper
Date: Tue, 15 Apr 2025 13:00:10 +0200	[thread overview]
Message-ID: <100ce0ca-d6e3-4ea5-8227-909e671a1ead@kernel.org> (raw)
In-Reply-To: <66f456226a68cc9e5458bb49eae348fadbe8649a.camel@kernel.org>

Hi Geliang,

On 15/04/2025 11:18, Geliang Tang wrote:
> On Tue, 2025-04-15 at 11:09 +0800, Geliang Tang wrote:
>> On Fri, 2025-04-11 at 17:26 -0700, Mat Martineau wrote:
>>> On Thu, 10 Apr 2025, Geliang Tang wrote:
>>>
>>>> From: Geliang Tang <tanggeliang@kylinos.cn>
>>>>
>>>> Address entries should not be removed from local_addr_list when a
>>>> subflow
>>>> is deleted by the userspace PM, should only be removed when
>>>> sending
>>>> a
>>>> REMOVE_ADDR.
>>>>
>>>> So mptcp_userspace_pm_delete_local_addr() helper shouldn't be
>>>> called in
>>>> mptcp_pm_nl_subflow_create_doit() and
>>>> mptcp_pm_nl_subflow_destroy_doit().
>>>>
>>>> Since this helper is open-coding in mptcp_pm_nl_remove_doit(), it
>>>> can be
>>>> dropped now.
>>>>
>>>> Address entries are removed from local_addr_list when sending a
>>>> REMOVE_ADDR
>>>> by the userspace PM, the local_addr_used counter of PM should
>>>> also
>>>> be
>>>> decremented accordingly.
>>>>
>>>
>>> Hi Geliang -
>>>
>>> Have you tried this patch with mptcpd? Does it affect any tests
>>> there?
>>
>> I haven't tested it. To be honest, I don't know how to run the test
>> items of mptcpd. Can you give me some guidance?

'make check' should execute all the tests. Do you mind trying this with
and without your modifications?

Please make sure relevant ones are not skipped because of missing
dependences or tools.

> I just tested it this way, and here are the test results:

(...)

> These results appear to be unchanged from before. And in fact these
> tests do not test userspace pm.

I don't remember what is being tested, but I guess some parts of the
userspace PM are tested somewhere, no?

Coveralls [1] seems to indicate it is tested, but I don't see the details.

[1] https://coveralls.io/github/multipath-tcp/mptcpd

> So it seems that this patch will not affect the tests of mptcpd.

Regarding your patch 2/2 of this series: did you have to modify the
selftests to make the tests passing again due to a changed behaviour, or
did you modify them to extend the behaviour.

It looks like the behaviour has changed, but it is unclear to me if it
is to fix something or add a new feature.

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


  reply	other threads:[~2025-04-15 11:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-10  4:14 [PATCH mptcp-next v2 0/2] only remove entry from local_addr_list when sending a REMOVE_ADDR Geliang Tang
2025-04-10  4:14 ` [PATCH mptcp-next v2 1/2] mptcp: pm: userspace: drop delete_local_addr helper Geliang Tang
2025-04-12  0:26   ` Mat Martineau
2025-04-15  3:09     ` Geliang Tang
2025-04-15  9:18       ` Geliang Tang
2025-04-15 11:00         ` Matthieu Baerts [this message]
2025-04-16  7:16           ` Geliang Tang
2025-04-18  0:54             ` Mat Martineau
2025-04-10  4:14 ` [PATCH mptcp-next v2 2/2] selftests: mptcp: send REMOVE_ADDR after subflow is deleted Geliang Tang
2025-04-10  5:33 ` [PATCH mptcp-next v2 0/2] only remove entry from local_addr_list when sending a REMOVE_ADDR 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=100ce0ca-d6e3-4ea5-8227-909e671a1ead@kernel.org \
    --to=matttbe@kernel.org \
    --cc=geliang@kernel.org \
    --cc=martineau@kernel.org \
    --cc=mptcp@lists.linux.dev \
    --cc=tanggeliang@kylinos.cn \
    /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