mptcp.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: Matthieu Baerts <matttbe@kernel.org>
To: Hangbin Liu <hangbin.liu@linux.dev>
Cc: Hangbin Liu <liuhangbin@kylinos.cn>, MPTCP Linux <mptcp@lists.linux.dev>
Subject: Re: [PATCH mptcp-next 2/2] selftests: mptcp: convert iptables to nftables for mptcp_join.sh
Date: Thu, 3 Sep 2026 11:28:28 +0200	[thread overview]
Message-ID: <6c9dd599-e9d2-470f-bc7f-2af2e9d003b6@kernel.org> (raw)
In-Reply-To: <apjU-uM8dvxnVcaP@fedora>

Hi Hangbin,

On 03/09/2026 04:02, Hangbin Liu wrote:
> Hi Matthieu,
> 
> Sorry, My mbsync has some delays and I post v2 too quick before catching
> your feedback.

No problem.

Just in case, maybe korgalore can help?

https://people.kernel.org/monsieuricon/tracking-kernel-development-with-korgalore

> I will update the patch with your feed back and re-post tomorrow.

Thanks!

> On Wed, Sep 02, 2026 at 12:00:40PM +0200, Matthieu Baerts wrote:

(...)

>> If you don't need this one (or any set in helpers), don't set it/them,
>> and don't use a global variable. Or reset it in init_partial, but prefer
>> using local variable with a limited scope.
> 
> Yes, we don't need the handle in other place, which I will remove them.
> But for endpoint_tests(), after adding rules in reset_with_tcp_filter,
> we need to remove the rule outside. I will reset it after each test.

Perhaps you could flush the whole table instead? But if it makes more
sense to assign this variable, fine by me.

>> Also, maybe clearer to use 'nft -j' with 'jq' to get that (if possible)?
> 
> I check the output of `nft -j` (paste an example at the end of mail),
> which looks not each to get the rule handle easily.

I just noticed that in nft's latest release, it is possible to set a
handle when adding the rules. That looks cleaner for our case here, but
it requires the version released 2 days ago, so no :)

Probably best to support the version from Debian Stable, 1.1.3, apparently.

  https://repology.org/project/nftables/versions

>> One last note: for new features linked to MPTCP that might take multiple
>> versions to get ready, it might be better to send these patches only to
>> the MPTCP ML (no need to add anybody else in cc). Then we will apply
>> them in our tree and send them to netdev when we consider them as
>> "ready" (and hope for Clashiko not to get back to them days/weeks later,
>> but that should be a temporally issue :) ).
> 
> Thanks for the notes. I used to rely on `b4 auto-to-cc` too much...

Most of the time, that's fine. It's just for some subsubtrees where
(urgent & simple) fixes can go to the parent tree (netdev here)
directly, but the rest can go only to the subsubtree ML.

BTW, if you are on top of our export(-net) (or for-review(-net)) branch,
there is a .b4-config: you just need to use 'b4 send' then :)

> An example of `nft -j` output:

Thanks for the output!

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


  parent reply	other threads:[~2026-09-03  9:28 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-02  6:52 [PATCH mptcp-next 0/2] selftests: mptcp: convert iptables to nftables Hangbin Liu
2026-09-02  6:52 ` [PATCH mptcp-next 1/2] selftests: mptcp: convert iptables to nftables for mptcp_sockopt.sh Hangbin Liu
2026-09-02  7:02   ` sashiko-bot
2026-09-02  7:47     ` Hangbin Liu
2026-09-02  9:17   ` Matthieu Baerts
2026-09-03  2:15     ` Hangbin Liu
2026-09-02  6:52 ` [PATCH mptcp-next 2/2] selftests: mptcp: convert iptables to nftables for mptcp_join.sh Hangbin Liu
2026-09-02 10:00   ` Matthieu Baerts
2026-09-03  2:02     ` Hangbin Liu
2026-09-03  6:35       ` Hangbin Liu
2026-09-03  6:54         ` Florian Westphal
2026-09-03  7:35           ` Hangbin Liu
2026-09-03  9:28       ` Matthieu Baerts [this message]
2026-09-04  8:01         ` Hangbin Liu
2026-09-04 16:40           ` Matthieu Baerts
2026-09-07  1:02             ` Hangbin Liu
2026-09-07  5:50               ` Matthieu Baerts
2026-09-07  6:59                 ` Hangbin Liu
2026-09-07  7:55                   ` Matthieu Baerts
2026-09-02  7:23 ` [PATCH mptcp-next 0/2] selftests: mptcp: convert iptables to nftables MPTCP CI
2026-09-02  8:14 ` 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=6c9dd599-e9d2-470f-bc7f-2af2e9d003b6@kernel.org \
    --to=matttbe@kernel.org \
    --cc=hangbin.liu@linux.dev \
    --cc=liuhangbin@kylinos.cn \
    --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;
as well as URLs for NNTP newsgroup(s).