The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH net-next 0/3] seg6_local: add USP and USD flavors support (RFC 8986)
@ 2026-11-03  6:38 Minhong He
  2026-11-04  7:22 ` Hangbin Liu
  0 siblings, 1 reply; 4+ messages in thread
From: Minhong He @ 2026-11-03  6:38 UTC (permalink / raw)
  To: andrea.mayer, davem, edumazet, kuba, pabeni, netdev
  Cc: horms, linux-kernel, Minhong He

RFC 8986 defines the PSP, USP and USD flavors for the SRv6 End
behaviors. Currently, the Linux SRv6 implementation (seg6_local)
only supports the PSP flavor (combined with the NEXT-C-SID
flavor).

This patch series adds support for the USP (Ultimate Segment Pop
of the SRH) flavor to the End, End.X and End.T behaviors, and for
the USD (Ultimate Segment Decapsulation) flavor to the SRv6 End
behaviors that perform the decapsulation of the packet (i.e.,
End.DX4, End.DX6, End.DT4, End.DT6, End.DT46).

Patch overview:

- Patch 1 implements the USP flavor for the End behavior by
  extending the RFC 8986 flavor action table with the entries
  required to process the combinations of packet info and the USP
  flavor (either alone or combined with the PSP flavor);

- Patch 2 adds the USD flavor support to the decap behaviors.
  Since these behaviors already remove the outer IPv6 header (and,
  as a consequence, the SRH too) as part of the decapsulation
  process, the USD flavor is only supported at the control plane
  level, to ease the interoperability with control planes (e.g.,
  IS-IS, BGP-LS) which can advertise SIDs with the USD flavor;

- Patch 3 extends the USP flavor support to the End.X and End.T
  behaviors, which can now take advantage of the flavor action
  table mechanism introduced in patch 1.

The series has been applied and tested on top of linux-next
(next-20261102).

Minhong He (3):
  seg6_local: implement USP flavor for the End behavior
  seg6_local: support USD flavor for decap behaviors
  seg6_local: add USP flavor support to End.X and End.T

 net/ipv6/seg6_local.c | 163 ++++++++++++++++++++++++++++++++++++------
 1 file changed, 143 insertions(+), 20 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH net-next 0/3] seg6_local: add USP and USD flavors support (RFC 8986)
  2026-11-03  6:38 Minhong He
@ 2026-11-04  7:22 ` Hangbin Liu
  0 siblings, 0 replies; 4+ messages in thread
From: Hangbin Liu @ 2026-11-04  7:22 UTC (permalink / raw)
  To: Minhong He
  Cc: andrea.mayer, davem, edumazet, kuba, pabeni, netdev, horms,
	linux-kernel, Andrea Mayer

Hi Minhong,
On Tue, Nov 03, 2026 at 02:38:03PM +0800, Minhong He wrote:
> RFC 8986 defines the PSP, USP and USD flavors for the SRv6 End
> behaviors. Currently, the Linux SRv6 implementation (seg6_local)
> only supports the PSP flavor (combined with the NEXT-C-SID
> flavor).

No, the kernel will not process PSP when it is combined with
NEXT-C-SID at present.

> 
> This patch series adds support for the USP (Ultimate Segment Pop
> of the SRH) flavor to the End, End.X and End.T behaviors, and for
> the USD (Ultimate Segment Decapsulation) flavor to the SRv6 End
> behaviors that perform the decapsulation of the packet (i.e.,
> End.DX4, End.DX6, End.DT4, End.DT6, End.DT46).

Thanks for the patch. Unfortunately, I have already started this work back
in September. I discussed my plan with Andrea at that time. Sadly, I did not
mention this in the cover letter for my PSP support series[1], that’s my mistake.
I didn’t expect someone would skip PSP and start with USP/USD directly.

Kernel changes alone are not sufficient, we also need selftest updates for
this new feature. So I’ve begun adding PSP support for End.X, along with the
corresponding selftests. The USP/USD kernel updates are already in my local
tree.

That said, there is a sequence for landing new features. Right now we need
to wait for Andrea’s NEXT-C-SID and PSP series[2] to get merged into net-next
first.

[1] https://lore.kernel.org/netdev/20260922-srv6_flavors_endx-v1-0-4d01c05c47b7@kylinos.cn/
[2] https://lore.kernel.org/netdev/20261011192310.55-1-andrea.mayer@uniroma2.it/

Thanks
Hangbin

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH net-next 0/3] seg6_local: add USP and USD flavors support (RFC 8986)
@ 2026-11-19  0:25 Saphal Poudyal
  2026-11-19  0:46 ` Hangbin Liu
  0 siblings, 1 reply; 4+ messages in thread
From: Saphal Poudyal @ 2026-11-19  0:25 UTC (permalink / raw)
  To: Hangbin Liu, Minhong He
  Cc: andrea.mayer, davem, edumazet, kuba, pabeni, netdev, horms,
	linux-kernel, Andrea Mayer

On 11/4/26 01:22, Hangbin Liu wrote:

> Kernel changes alone are not sufficient, we also need selftest updates for
> this new feature. So I’ve begun adding PSP support for End.X, along with the
> corresponding selftests. The USP/USD kernel updates are already in my local
> tree.
Hi Hangbin,

Good to hear that work has been started on this. For USD, this series
only defines USD for decapsulating behaviors (End.DX4, End.DT6 etc.). I
wanted to confirm if your USD work covers End, End.X and End.T as
specified in RFC 8986 section 4.16.3.

It's a piece I need to make SRv6 TI-LFA work (terminate the repair
tunnels). I'm working through FRR's SRv6 TI-LFA and it leaves out the
decapsulation part on the Q-node.

I'd be glad to test your series with FRR once it's posted.

Thanks,
Saphal


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH net-next 0/3] seg6_local: add USP and USD flavors support (RFC 8986)
  2026-11-19  0:25 [PATCH net-next 0/3] seg6_local: add USP and USD flavors support (RFC 8986) Saphal Poudyal
@ 2026-11-19  0:46 ` Hangbin Liu
  0 siblings, 0 replies; 4+ messages in thread
From: Hangbin Liu @ 2026-11-19  0:46 UTC (permalink / raw)
  To: Saphal Poudyal
  Cc: Minhong He, andrea.mayer, davem, edumazet, kuba, pabeni, netdev,
	horms, linux-kernel, Andrea Mayer

Hi Saphal,
On Thu, Nov 19, 2026 at 12:25:14AM +0000, Saphal Poudyal wrote:
> On 11/4/26 01:22, Hangbin Liu wrote:
> 
> > Kernel changes alone are not sufficient, we also need selftest updates for
> > this new feature. So I’ve begun adding PSP support for End.X, along with the
> > corresponding selftests. The USP/USD kernel updates are already in my local
> > tree.
> Hi Hangbin,
> 
> Good to hear that work has been started on this. For USD, this series
> only defines USD for decapsulating behaviors (End.DX4, End.DT6 etc.). I
> wanted to confirm if your USD work covers End, End.X and End.T as
> specified in RFC 8986 section 4.16.3.

Yes, the USD flavor should work with End, End.X, and End.T as RFC defines.
> 
> It's a piece I need to make SRv6 TI-LFA work (terminate the repair
> tunnels). I'm working through FRR's SRv6 TI-LFA and it leaves out the
> decapsulation part on the Q-node.
> 
> I'd be glad to test your series with FRR once it's posted.

Good to know there’s a use case. I’ll post the series and Cc you once the
PSP series work is finished.

Thanks
Hangbin

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-19  0:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-19  0:25 [PATCH net-next 0/3] seg6_local: add USP and USD flavors support (RFC 8986) Saphal Poudyal
2026-11-19  0:46 ` Hangbin Liu
  -- strict thread matches above, loose matches on Subject: below --
2026-11-03  6:38 Minhong He
2026-11-04  7:22 ` Hangbin Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox