public inbox for mptcp@lists.linux.dev
 help / color / mirror / Atom feed
From: Matthieu Baerts <matttbe@kernel.org>
To: Geliang Tang <geliang@kernel.org>
Cc: MPTCP Upstream <mptcp@lists.linux.dev>
Subject: Re: [PATCH mptcp-next] selftests: mptcp: join: no SKIP mark for group checks
Date: Mon, 26 Jan 2026 19:42:17 +0100	[thread overview]
Message-ID: <db374b02-06fd-4be8-96d8-e6be55d522ea@kernel.org> (raw)
In-Reply-To: <c24cd268dc2f6797425e022a515776a006eaded6.camel@kernel.org>

Hi Geliang,

Thank you for the review! (and sorry for the late reply)

On 28/12/2025 04:06, Geliang Tang wrote:
> Hi Matt,
> 
> Thanks for this patch.
> 
> On Thu, 2025-12-11 at 19:09 +0100, Matthieu Baerts (NGI0) wrote:
>> When executing the last MPTCP selftests on older kernels, this output
>> is
>> printed:
>>
>>   # 001 no JOIN
>>   #       join Rx                             [SKIP]
>>   #       join Tx                             [SKIP]
>>   #       fallback                            [SKIP]
>>
>> In fact, behind each line, a few counters are checked, and likely not
>> all of them have been skipped because the they are not available on
>> these kernels. Instead, "new" and unsupported counters for these
>> groups
>> are now ignored, and [ OK ] will be printed instead of [SKIP].
>>
>> Note that on the MPTCP CI, when validating the dev versions, any
>> unsupported counter will cause the tests to fail. So this is safe not
>> to
>> print 'SKIP' for these group checks.
>>
>> Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
>> ---
>>  tools/testing/selftests/net/mptcp/mptcp_join.sh | 30 ++++++++++++---
>> ----------
>>  1 file changed, 15 insertions(+), 15 deletions(-)
>>
>> diff --git a/tools/testing/selftests/net/mptcp/mptcp_join.sh
>> b/tools/test[ -z "$count" ]ing/selftests/net/mptcp/mptcp_join.sh
>> index b2e6e548f796..77370b10651a 100755
>> --- a/tools/testing/selftests/net/mptcp/mptcp_join.sh
>> +++ b/tools/testing/selftests/net/mptcp/mptcp_join.sh
>> @@ -1407,7 +1407,7 @@ chk_join_tx_nr()
>>  
>>  	count=$(mptcp_lib_get_counter ${ns2}
>> "MPTcpExtMPJoinSynTxCreatSkErr")
>>  	if [ -z "$count" ]; then
>> -		rc=${KSFT_SKIP}
>> +		: # ignore skip
>>  	elif [ "$count" != "$create" ]; then
> 
> In that case, wouldn't it be better to remove 'if [ -z "$count" ];
> then' and directly check with 'if [ "$count" != "$create" ]; then'?

No, we cannot: if $count is empty, then "$count" != "$create", and the
test will be marked as failed instead of being ignored.

We could have:

  if [ -n "$count" ] && [ "$count" != "$create" ]

But I think it is clearer to have an explicit comment for this special
case than multiple conditions. WDYT?

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


  reply	other threads:[~2026-01-26 18:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-11 18:09 [PATCH mptcp-next] selftests: mptcp: join: no SKIP mark for group checks Matthieu Baerts (NGI0)
2025-12-11 19:17 ` MPTCP CI
2025-12-28  3:06 ` Geliang Tang
2026-01-26 18:42   ` Matthieu Baerts [this message]
2026-01-27  6:54     ` Geliang Tang
2026-01-27 12:25       ` 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=db374b02-06fd-4be8-96d8-e6be55d522ea@kernel.org \
    --to=matttbe@kernel.org \
    --cc=geliang@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