Netdev List
 help / color / mirror / Atom feed
From: hangbin.liu@linux.dev
To: "Andrea Mayer" <andrea.mayer@uniroma2.it>
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: Mon, 23 Nov 2026 13:40:27 +0000	[thread overview]
Message-ID: <4717cab46b8eec796eb97799240cd6ab92d8c1ed@linux.dev> (raw)
In-Reply-To: <20261123050952.21dc46abdf5fe4fa235bb68d@uniroma2.it>

November 23, 2026 at 12:09 PM, "Andrea Mayer" <andrea.mayer@uniroma2.it> wrote:
> 
> On Thu, 19 Nov 2026 21:55:21 +0800
> Hangbin Liu <hangbin.liu@linux.dev> wrote:
> 
> > 
> > [snip]
> >  @@ -1031,6 +1187,25 @@ setup_end_flv_psp()
> >  SETUP_ERR=0
> >  }
> >  
> >  +setup_endx_flv_psp()
> >  +{
> >  + SETUP_ERR=1
> >  +
> >  + setup_hs_lo_addr 1 1 "${ENDX_CSID_PSP_FUNC}"
> >  + setup_hs_lo_addr 2 2 "${ENDX_CSID_PSP_FUNC}"
> >  +
> >  + # The same SRv6 policies with setup_end_flv_psp except using End.X
> >  + setup_rt_policy_ipv6 2 1 "3>4:noflv:End.X 4>2:psp:End.X 2>h:psp:End.X"
> >  + setup_rt_policy_ipv6 1 2 "1>h:psp:End.X"
> >  +
> >  + setup_rt_policy_ipv6 "2:${ENDX_CSID_PSP_FUNC}" 1 \
> >  + "3>4:next-csid,psp:End.X 4>2,2>h:next-csid,psp:End.X"
> >  + setup_rt_policy_ipv6 "1:${ENDX_CSID_PSP_FUNC}" 2 \
> >  + "4>3,3>1,1>h:next-csid,psp:End.X"
> >  +
> >  + SETUP_ERR=0
> >  +}
> > 
> On v3, Sashiko asked whether the End.X tests would pass with End.X
> working as End. In this topology, the nh6 of each End.X is also the
> next hop that a lookup of the new DA gives, and the tests pass in both
> cases. An unreachable route in table 90 for the next SID, on rt-4 for
> (i.a) and on rt-3 for (i.c), would make End fail and leave End.X
> working. This is close to what Sashiko suggested on v3. What do you
> think about adding these two routes to the End.X scenario, each with
> its defer?
> 

Oh, for i.a), do you mean add an unreach rt-2 SID on rt-4?
e.g. fcfcff:2::/32 unreachable? If yes, based on

#   (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.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 think we should add the unreach rt-4 SID on rt-3, e.g. fcff:4::/32 and fcbb:4::/32,
because we need to use the neighbour route on rt-4 to redirect packet to rt-3 after
End action. What do you think?

Thanks
Hangbin

      parent reply	other threads:[~2026-11-23 13:40 UTC|newest]

Thread overview: 9+ 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-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-23 13:40     ` hangbin.liu [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=4717cab46b8eec796eb97799240cd6ab92d8c1ed@linux.dev \
    --to=hangbin.liu@linux.dev \
    --cc=andrea.mayer@uniroma2.it \
    --cc=andrea@common-net.org \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --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