All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthieu Baerts <matttbe@kernel.org>
To: quanyeyang@proton.me, mptcp@lists.linux.dev
Subject: Re: [PATCH mptcp-net v2 2/2] selftests: mptcp: join: retry connect after early fallback
Date: Fri, 11 Sep 2026 19:20:07 +0200	[thread overview]
Message-ID: <9f979653-9817-4daf-89a2-bb6394b406c6@kernel.org> (raw)
In-Reply-To: <20260911-mptcp-connect-undo-net-v2-2-54224cea2238@proton.me>

Hi Quanye,

On 11/09/2026 17:42, Quanye Yang via B4 Relay wrote:
> From: Quanye Yang <quanyeyang@proton.me>
> 
> Cover leftover msk state when connect() fails before
> SS_CONNECTING. Existing mptcp_connect tests always use a fresh
> socket, so they cannot see a sticky fallback on the same fd.
> 
> Add a small helper that optionally issues a wrong-family connect()
> on an MPTCP socket, then connects to a real IPv4 destination and
> checks MPTCP_INFO. A new mptcp_join.sh group (-n) runs two cases:
> 
> - a failed connect without early fallback must not poison the retry
> - after a blackhole-driven early fallback plus a failed connect,
>   clearing blackhole_timeout, the same fd must complete MP_CAPABLE
>   again

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.


  reply	other threads:[~2026-09-11 17:20 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 [this message]
2026-09-12  8:42     ` quanyeyang
2026-09-12  9:15       ` Matthieu Baerts
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=9f979653-9817-4daf-89a2-bb6394b406c6@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.