Re: [PATCH net-next v3 5/5] selftests: seg6: add PSP flavor testing for SRv6 End.X
From: Andrea Mayer
Date: Tue Nov 17 2026 - 21:58:02 EST
On Wed, 18 Nov 2026 08:51:16 +0800
Hangbin Liu <hangbin.liu@xxxxxxxxx> wrote:
> [snip]
> hmm, Not sure if you mean to add a ip rule for the ingress route? e.g.
> # ip rule add from cafe::1 to fcff:4::af1 lookup 100
> # ip route add fcff:4::af1 table 100 encap seg6 mode inline segs fcff:3::000e, dev dum0
>
> Then on rt3, we got
> IPv6 DA=fcff:3::e | extra SRH, SL=1 | Policy's SRH, SL=2 | Payload
> after action End, rt3 send
> IPv6 DA=fcff:4::af1 | extra SRH, SL=0 | Policy's SRH, SL=2 | Payload
>
> But here the fcff:4::af1 will hit the ip rule and do encap again, which will
> be a loop.
>
> Do I missed something?
Hi Hangbin,
No new ip rule is needed. The rules that send the SIDs to table 90 are
already there, and the route goes in table 90 of the ingress router only,
for the first SID of the Policy (rt-1 and fcff:3::400a for (i.a), as in my
reply to your previous mail). After the End SID of another router (rt-4 in
(i.a)) consumes the extra SRH, the packet goes on to the router of the
first SID and does not come back to the ingress router, so there should not
be a loop in this way.
Ciao,
Andrea