On Wed, 02 Dec 2026 16:46:32 +0800 Hangbin Liu <hang…@linux.dev> wrote: Hi Hangbin, thanks for the v6 and for taking in all the points of the v5 review. Just one comment below:
> From: Hangbin Liu <liuh…@kylinos.cn> > > Add an End.X flavor scenario to srv6_end_flavors_test.sh that applies > the same PSP policies as the End scenario, alone and combined with > NEXT-C-SID, with every node bound through its adjacency (e.g. 4>2 for > rt-4 towards rt-2, 2>h towards the host). > > Extend policy elements to <nodeid:op:act>, with <op> specifying the > flavors and <act> selecting the action. Encode the adjacency in End.X > SIDs, for example fcff:3::400a and fcbb:0:34a9:: for rt-3 toward rt-4. > > Add consumed-SRH coverage for End.X. Insert the extra SRH at ingress > because End.X forwards through its configured adjacency. > > Install unreachable routes in table 90 on rt-3 and rt-4 for the hs-1 > to hs-2 policies (i.a) and (i.c). These routes make the next SID > lookup fail if End.X falls back to End, while forwarding via nh6 > still succeeds. The route on rt-4 in (i.c) covers the NEXT-C-SID > shift. > > Probe kernel support for End.X PSP and skip the End.X tests if the > probe fails. Document the packet paths to each test section so the > route taken by the traffic is clear. > > Signed-off-by: Hangbin Liu <liuh…@kylinos.cn> > [snip] > +# Set up an unreachable route on a router so that a lookup of the next SID > +# fails under End, while End.X still forwards via its adjacency (nh6). > +# args: > +# $1 - router to configure > +# $2 - adjacent router, or a NEXT-C-SID node list (e.g. "4" or "4>2,2>h") > +# $3 - flavors <op> of the element (e.g. "psp" or "next-csid,psp") > +setup_rt_unreachable() > +{ > + local rt="$1" > + local adj="$2" > + local op_type="$3" > [snip] > + case "${op_type}" in > + "psp") > + sid="$(get_rt_sid "${adj}" "psp" "End.X" "${ENDX_PSP_FUNC}")" > + ;; > [snip] > +setup_endx_flv_psp() > +{ > [snip] > + # (i.a) add fcff:4::2af1 unreachable on rt-3 and fcff:2::0af1 on rt-4 > + # (i.c) add fcbb:0:42a9:20a9:: unreachable on rt-3 and fcbb:0:20a9:: > + # on rt-4 > + setup_rt_unreachable 3 "4>2" "psp" > + setup_rt_unreachable 4 "2>h" "psp" > + setup_rt_unreachable 3 "4>2,2>h" "next-csid,psp" > + setup_rt_unreachable 4 "2>h" "next-csid,psp"
The $2 line of the comment looks like a leftover from v5: it still says "adjacent router" and gives "4" as an example, while $2 is now the node ID of the next SID as the policy writes it, e.g. "4>2" (fcff:4::2af1). "4" gives fcff:4::af1, so a new call that passes "4" instead of "4>2" would not catch an End.X that falls back to End. The calls above already pass "4>2" and "2>h", so the test itself is fine. Sashiko flagged the $2 line too. Maybe something like: # $2 - node ID of the next SID, as in the policy, or a NEXT-C-SID # node list (e.g. "4>2" or "4>2,2>h") Could you please fix this comment in a v7? It is a small change in the comment, and it avoids a separate follow-up just for this. The rest of the patch looks good to me. Many thanks, Andrea