From: Andrea Mayer <andrea.mayer@uniroma2.it>
To: Hangbin Liu <hangbin.liu@linux.dev>
Cc: "David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Simon Horman <horms@kernel.org>, Shuah Khan <shuah@kernel.org>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-kselftest@vger.kernel.org,
Hangbin Liu <liuhangbin@kylinos.cn>,
Stefano Salsano <stefano.salsano@uniroma2.it>,
Justin Iurman <justin.iurman@gmail.com>,
Andrea Mayer <andrea@common-net.org>,
Andrea Mayer <andrea.mayer@uniroma2.it>
Subject: Re: [PATCH net-next v4 5/5] selftests: seg6: add PSP flavor testing for SRv6 End.X
Date: Wed, 25 Nov 2026 04:16:14 +0100 [thread overview]
Message-ID: <20261125041614.98d96a37cd5a5e082729cc62@uniroma2.it> (raw)
In-Reply-To: <20261124054729.GA14932@Liu-laptop>
On Tue, 24 Nov 2026 13:47:29 +0800
Hangbin Liu <hangbin.liu@linux.dev> wrote:
Hi Hangbin,
thanks for looking further into it.
> [snip]
>
> (i.a) hs-1 -> hs-2: on the packets with DA=fcff:3::400a, rt-1 inserts the
> extra SRH with SID List=fcff:4::e,fcff:3::400a, and rt-4 consumes it.
> Path: hs-1 -> rt-1 [ -> rt-4 ] -> rt-3 -> rt-4 -> rt-2 -> hs-2
> (i.b) hs-2 -> hs-1: on the packets with DA=fcff:1::0af1, rt-2 inserts the
> extra SRH with SID List=fcff:3::e,fcff:1::0af1, and rt-3 consumes it.
> Path: hs-2 -> rt-2 [ -> rt-3 ] -> rt-1 -> hs-1
> (i.c) hs-1 -> hs-2: on the packets with DA=fcbb:0:34a9::, rt-1 inserts the
> extra SRH with SID List=fcff:4::e,fcbb:0:34a9::, and rt-4 consumes it.
> Path: hs-1 -> rt-1 [ -> rt-4 ] -> rt-3 -> rt-4 -> rt-2 -> hs-2
> (i.d) hs-2 -> hs-1: on the packets with DA=fcbb:0:43a9:31a9:10a9::, rt-2
> inserts the extra SRH with SID List=fcff:3::e,fcbb:0:43a9:31a9:10a9::,
> and rt-3 consumes it.
> Path: hs-2 -> rt-2 [ -> rt-3 ] -> rt-4 -> rt-3 -> rt-1 -> hs-1
>
> Ah, add unreach rt-4 SID (fcbb:0:4000::/36) on rt-3 will break the path for (1.d)
> testing, as we use End action on rt-3 and redirect via the route. Can we just
> add the unreach route (fcff:4::/32) on rt-3 for (1.a) ?
Right, an unreachable /36 in place of the underlay route breaks the
consumed SRH test of (i.d). The exact route for the (i.c) container
fcbb:0:42a9:20a9:: on rt-3 does not, as the End there looks up
fcbb:0:43a9:31a9:10a9::.
A route on rt-3 for (i.a) is a good idea. It checks the End.X 3>4
without flavors, which the routes on rt-4 for (i.a) and on rt-3 for
(i.c) do not check.
On rt-3, fcff:4::/32 is already in table 90, as the underlay route via
rt-4. Adding the unreachable one gives "RTNETLINK answers: File exists",
and with "ip route replace" it takes the place of the underlay route.
For (i.a) on rt-3, I would add an unreachable route only for
fcff:4::2af1, the SID after End.X 3>4. The underlay route stays as it
is, and the defer only has to delete the new route. I added it to the
routes in my other reply.
I would keep the route on rt-4 too. With your /32 on rt-3, put in with
"ip route replace", and without the route on rt-4, all the tests pass
when only the End.X 4>2 with PSP works as End.
Ciao,
Andrea
next prev parent reply other threads:[~2026-11-25 3:16 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-19 13:55 [PATCH net-next v4 0/5] seg6: add End.X PSP flavor support and selftests Hangbin Liu
2026-11-19 13:55 ` [PATCH net-next v4 1/5] seg6: split final End process out of flavor processing Hangbin Liu
2026-11-19 13:55 ` [PATCH net-next v4 2/5] seg6: add RFC8986 flavor support for End.X Hangbin Liu
2026-11-23 14:24 ` netdev-bot+sashiko
2026-11-19 13:55 ` [PATCH net-next v4 3/5] selftests: seg6: move SRv6 End PSP setup into its own helper Hangbin Liu
2026-11-19 13:55 ` [PATCH net-next v4 4/5] selftests: seg6: explicit cleanup for SRv6 End PSP test Hangbin Liu
2026-11-19 13:55 ` [PATCH net-next v4 5/5] selftests: seg6: add PSP flavor testing for SRv6 End.X Hangbin Liu
2026-11-23 4:09 ` Andrea Mayer
2026-11-23 10:09 ` Hangbin Liu
2026-11-25 2:36 ` Andrea Mayer
2026-11-23 13:40 ` hangbin.liu
2026-11-24 5:47 ` Hangbin Liu
2026-11-25 3:16 ` Andrea Mayer [this message]
2026-11-23 14:24 ` netdev-bot+sashiko
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=20261125041614.98d96a37cd5a5e082729cc62@uniroma2.it \
--to=andrea.mayer@uniroma2.it \
--cc=andrea@common-net.org \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=hangbin.liu@linux.dev \
--cc=horms@kernel.org \
--cc=justin.iurman@gmail.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=liuhangbin@kylinos.cn \
--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®