MPTCP Linux Development
 help / color / mirror / Atom feed
From: Matthieu Baerts <matttbe@kernel.org>
To: Mat Martineau <martineau@kernel.org>
Cc: MPTCP Upstream <mptcp@lists.linux.dev>
Subject: Re: [PATCH mptcp-net 2/3] selftests: mptcp: pm: ensure unknown flags are ignored
Date: Thu, 27 Nov 2025 15:57:24 +0100	[thread overview]
Message-ID: <76a84375-3778-4685-9ef3-da367ac8ea54@kernel.org> (raw)
In-Reply-To: <34dd0312-6eb7-b56d-b7e4-06837bc4c50c@kernel.org>

Hi Mat,

Thank you for the review!

On 27/11/2025 00:57, Mat Martineau wrote:
> On Wed, 26 Nov 2025, Matthieu Baerts (NGI0) wrote:
> 
>> This validates the previous commit: the userspace can set unknown flags
>> -- the 7th bit is currently unused -- without errors, but only the
>> supported ones are printed in the endpoints dumps.
>>
>> The 'Fixes' tag here below is the same as the one from the previous
>> commit: this patch here is not fixing anything wrong in the selftests,
>> but it validates the previous fix for an issue introduced by this commit
>> ID.

(...)

>> diff --git a/tools/testing/selftests/net/mptcp/pm_nl_ctl.c b/tools/
>> testing/selftests/net/mptcp/pm_nl_ctl.c
>> index 65b374232ff5..99eecccbf0c8 100644
>> --- a/tools/testing/selftests/net/mptcp/pm_nl_ctl.c
>> +++ b/tools/testing/selftests/net/mptcp/pm_nl_ctl.c
>> @@ -24,6 +24,8 @@
>> #define IPPROTO_MPTCP 262
>> #endif
>>
>> +#define MPTCP_PM_ADDR_FLAG_UNKNOWN _BITUL(7)
> 
> Given the u8->u32 change in patch 3, I can see why this needs to be 7
> for this patch to be meaningful for -net.
> 
> Can you add a patch 4 that updates this to _BITUL(31) to match up with
> the internal flag representation change?

It makes sense, and I was going to do that, but now I'm hesitating: some
CIs will use the latest version of the selftests on older kernels. If
they do that, the test will be less interesting on older kernels.

Maybe that's not an issue? I could move it to 31, or set bits from 6 to
31. Or stay on 7 for the time being?

(I don't think we would add new flags, but if we do, we can also move
this flag to the end later on?)

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


  reply	other threads:[~2025-11-27 14:57 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-26 18:31 [PATCH mptcp-net 0/3] mptcp: pm: ignore unknown endpoint flags Matthieu Baerts (NGI0)
2025-11-26 18:31 ` [PATCH mptcp-net 1/3] " Matthieu Baerts (NGI0)
2025-11-26 18:31 ` [PATCH mptcp-net 2/3] selftests: mptcp: pm: ensure unknown flags are ignored Matthieu Baerts (NGI0)
2025-11-26 23:57   ` Mat Martineau
2025-11-27 14:57     ` Matthieu Baerts [this message]
2025-11-26 18:31 ` [PATCH mptcp-net 3/3] mptcp: pm: align endpoint flags size with the NL specs Matthieu Baerts (NGI0)
2025-11-26 19:52 ` [PATCH mptcp-net 0/3] mptcp: pm: ignore unknown endpoint flags MPTCP CI
2025-11-26 23:54 ` Mat Martineau
2025-11-27 15:07   ` Matthieu Baerts

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=76a84375-3778-4685-9ef3-da367ac8ea54@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