All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthieu Baerts <matttbe@kernel.org>
To: quanyeyang <quanyeyang@proton.me>
Cc: mptcp@lists.linux.dev
Subject: Re: [PATCH mptcp-net v2 2/2] selftests: mptcp: join: retry connect after early fallback
Date: Sat, 12 Sep 2026 11:15:32 +0200	[thread overview]
Message-ID: <38df2211-f6b6-409d-80ae-de113601aff0@kernel.org> (raw)
In-Reply-To: <-ZGGpW4fRsw5nfnV8SiV4YNI0qeW_COcXZIfYFiTAtTRENexps8-vPd6Y1Z8DLUx9WWTLlHus0WJMuvbQ9zcB65LJI_w6GjGM5QY-HHRf2g=@proton.me>

On 12/09/2026 10:42, quanyeyang wrote:
> On Friday, September 11th, 2026 at AM 10:20, Matthieu Baerts <matttbe@kernel.org> wrote:
>  
>> Thank you for this test, but we cannot accept this: it is good to have a
>> test linked to a fix or a feature, but it has to be maintainable. If
>> each fix/feature adds 300+ LoC, that's unmaintainable (or LLM become
>> mandatory for that, but that's not what we want: we still need to be
>> able to read the test).
>>
>> Ideally:
>>
>> - create a small packetdrill test instead, using the MPTCP version [1]
>>
>> - not everything can be tested with packetdrill (even if it can also be
>>   extended) and adding code in the selftests is OK, but, if possible, it
>>   should reuse the existing tools and helpers
>>
>> So in this case here: can you have a packetdrill test instead? It should
>> be possible, no? If not, can you only use 'mptcp_connect' and the
>> existing helpers from mptcp_join.sh?
>>
>> Also, mptcp_join.sh is to validate cases with multiple subflows. I don't
>> think you need that, right?
>>
>> [1] https://github.com/multipath-tcp/packetdrill/
>>
>> Cheers,
>> Matt
>> --
>> Sponsored by the NGI0 Core fund.
>>
>>
> Thanks for the detailed guidance.
> Agreed, 2/2 is too heavy. I will drop it and try to add a small packetdrill
> script under gtests/net/mptcp/regressions/ instead: record a blackhole,
> then fail connect() on the same fd before SS_CONNECTING, clear
> blackhole_timeout, and check the retry still sends MP_CAPABLE
> (TCP_IS_MPTCP / the 3rd ACK).

Thanks, I think it should be easier and clearer to do that with packetdrill.

> The kernel fix in v2 1/2 does not depend on that selftest. Could you
> apply that one on its own?
I can, but I prefer to have the new test first, to validate it with and
without the modification.

In other words, no need to resend patch 1.

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


  reply	other threads:[~2026-09-12  9:15 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-11 15:42 [PATCH mptcp-net v2 0/2] mptcp: fix leftover fallback after failed connect Quanye Yang via B4 Relay
2026-09-11 15:42 ` Quanye Yang
2026-09-11 15:42 ` [PATCH mptcp-net v2 1/2] mptcp: reset msk state on early connect failure Quanye Yang via B4 Relay
2026-09-11 15:42   ` Quanye Yang
2026-09-11 15:42 ` [PATCH mptcp-net v2 2/2] selftests: mptcp: join: retry connect after early fallback Quanye Yang via B4 Relay
2026-09-11 15:42   ` Quanye Yang
2026-09-11 17:20   ` Matthieu Baerts
2026-09-12  8:42     ` quanyeyang
2026-09-12  9:15       ` Matthieu Baerts [this message]
2026-09-11 16:41 ` [PATCH mptcp-net v2 0/2] mptcp: fix leftover fallback after failed connect 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=38df2211-f6b6-409d-80ae-de113601aff0@kernel.org \
    --to=matttbe@kernel.org \
    --cc=mptcp@lists.linux.dev \
    --cc=quanyeyang@proton.me \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.