MPTCP Linux Development
 help / color / mirror / Atom feed
From: Hangbin Liu <hangbin.liu@linux.dev>
To: Matthieu Baerts <matttbe@kernel.org>
Cc: MPTCP Linux <mptcp@lists.linux.dev>
Subject: Re: [PATCH mptcp-next 2/2] selftests: mptcp: convert iptables to nftables for mptcp_join.sh
Date: Mon, 7 Sep 2026 14:59:38 +0800	[thread overview]
Message-ID: <ap5gzozOFWNTJPDc@fedora> (raw)
In-Reply-To: <afad1474-88ac-413c-b81c-1ff1de2c6738@kernel.org>

On Mon, Sep 07, 2026 at 07:50:04AM +0200, Matthieu Baerts wrote:
> >> If a global nft_handle var is used, that doesn't seem clear, and I think
> >> it would be clearer/easier to:
> >>
> >> - either delete a specific rule (but I don't think that's supported)
> >>
> >> - get the handle from the test and use it to delete the rule
> >>
> >> - or flush the table.
> >>
> >> So up to you, but probably best to avoid using nft_handle as global var.
> > 
> > Thanks, endpoint_tests is the only test that could delete iptables rules.
> > I use the nft_handle mainly because the iptables also delete rules with
> > specific match (iptables -D OUTPUT -s .. -p tcp -j REJECT) other than flush
> > the table directly.
> > 
> > endpoint_tests
> >   - reset_with_tcp_filter
> >     - iptables -D
> >     - iptables -I
> >     - iptables -D
> >   - reset_with_events
> >     - iptables -I
> >     - iptables -D
> >   - reset_with_tcp_filter
> >     - iptables -D
> > 
> > While from the logic it should be safe to flush the tables. I can avoid the
> > nft_handle in v4 (after v3 review).
> 
> Just to be sure it is clear: nft_handle can be used, just better to
> avoid using it globally I think. An alternative could be to pass a local
> nft_handle to reset_with_tcp_filter and set it there, but in bash,
> that's not very clear either.

reset_with_tcp_filter is also used by subflows_error_tests(). It's not easy
to just passing nft_handle to reset_with_tcp_filter for endpoint_tests and
leave subflows_error_tests() not affect. If there is a new version,
I'd prefer to just flush the table if you have no objections.

> >> You need to use `|git rebase --onto` instead, e.g.
> >>
> >>   git fetch origin  # adapt here and below if needed
> > 
> > For export branch, I think git fetch is not enough? I have to reset
> > to latest net/net-next merge commit and pull on that.
> 
> I'm not sure to understand. 'git fetch' with the right remote should get
> the latest <remote>/export branch ...

I get what you mean now. I checked out the export branch, which is not needed.

> 
> >>   git rebase --onto origin/export "$(b4 prep --show-info base-commit)"
> 
> ... then this command will use this new ref. Why do you need to reset
> net/net-next merge commit?
> 
> > Yes, it works! New git usage learned :)
> > 
> >>
> >> Can you check if it works for you, please? (so I can update the wiki
> >> page if needed)
> >>
> >> The alternative is to use `for-review`, with a continuous history, see:
> >>
> >>   https://github.com/multipath-tcp/mptcp_net-next/wiki/Git-Branches
> > 
> > I will try this tree next time
> 
> Up to you, but "export" is good as well, and required when using "git
> blame".

Got it.

Thanks
Hangbin

  reply	other threads:[~2026-09-07  6:59 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
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 [this message]
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=ap5gzozOFWNTJPDc@fedora \
    --to=hangbin.liu@linux.dev \
    --cc=matttbe@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