From: Andrea Mayer <andrea.mayer@uniroma2.it>
To: Alessio Faina <alessio.faina@canonical.com>
Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
pabeni@redhat.com, horms@kernel.org, shuah@kernel.org,
netdev@vger.kernel.org, linux-kselftest@vger.kernel.org,
linux-kernel@vger.kernel.org, hangbin.liu@linux.dev,
stefano.salsano@uniroma2.it,
Andrea Mayer <andrea.mayer@uniroma2.it>
Subject: Re: [PATCH net] selftest/net: skip srv6_end_d[t/x][4/6]_*_test.sh if iproute2 too old
Date: Wed, 2 Sep 2026 20:25:59 +0200 [thread overview]
Message-ID: <20260902202559.6c2b693bc2a6e697855e1b54@uniroma2.it> (raw)
In-Reply-To: <apbe0PAvaes977l-@cicciput>
On Tue, 1 Sep 2026 16:18:56 +0200
Alessio Faina <alessio.faina@canonical.com> wrote:
> [snip]
>
Hi Alessio,
Thanks. Some comments below.
> I tried this
>
> +test_iproute2_vrftable_supp_or_ksft_skip()
> +{
> + ip netns add __vrftable_test 2>/dev/null
The netns name is fixed, and if a netns with that name exists, the
check runs in it and deletes it at the end. It would be better to use
setup_ns with a local variable. setup_ns picks a random name, fills
the variable and checks the add. cleanup_ns then removes the namespace.
> + ip netns exec __vrftable_test sh -c "echo 1 > /proc/sys/net/vrf/strict_mode"
> + ip -netns __vrftable_test link add vrf-100 type vrf table 100
> + ip -netns __vrftable_test link set vrf-100 up
> + if ! ip -netns __vrftable_test -6 route add fc00::1/128 \
> + encap seg6local action End.DT4 vrftable 100 dev vrf-100 2>/dev/null; then
> + ip netns del __vrftable_test 2>/dev/null
> + echo "SKIP: SRv6 vrftable not supported in iproute2"
The srv6 tests that name iproute2 grep the ip help text, while this one
installs a route. IMO the message should say what is missing:
"SKIP: SRv6 End.DT4 vrftable not supported", and the same for the function
name, without iproute2 in it.
> + exit "${ksft_skip}"
> + fi
> + ip netns del __vrftable_test 2>/dev/null
> +}
> +
> +test_iproute2_vrftable_supp_or_ksft_skip
> +
The call goes after the vrf block and before setup(), because the check
writes the vrf sysctl and that file is not there without the module.
The commit message and the subject should be updated as well.
Ciao,
Andrea
prev parent reply other threads:[~2026-09-02 18:26 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-24 9:15 Alessio Faina
2026-08-25 8:39 ` Hangbin Liu
2026-08-25 8:45 ` Hangbin Liu
2026-08-25 22:01 ` Andrea Mayer
2026-08-26 11:49 ` Alessio Faina
2026-08-27 1:07 ` Andrea Mayer
2026-08-27 9:56 ` Alessio Faina
2026-08-28 2:23 ` Andrea Mayer
2026-08-28 16:04 ` Alessio Faina
2026-08-29 21:11 ` Andrea Mayer
2026-09-01 14:18 ` Alessio Faina
2026-09-02 18:25 ` Andrea Mayer [this message]
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=20260902202559.6c2b693bc2a6e697855e1b54@uniroma2.it \
--to=andrea.mayer@uniroma2.it \
--cc=alessio.faina@canonical.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=hangbin.liu@linux.dev \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=shuah@kernel.org \
--cc=stefano.salsano@uniroma2.it \
/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
all inboxes | Powered by JetHome®