Netdev List
 help / color / mirror / Atom feed
* [PATCH iproute2-next 0/2] seg6: add support for lookup attribute in SRv6 encap routes
@ 2026-07-12  2:11 Andrea Mayer
  2026-07-12  2:11 ` [PATCH iproute2-next 1/2] " Andrea Mayer
  2026-07-12  2:11 ` [PATCH iproute2-next 2/2] seg6: man: document the lookup attribute for " Andrea Mayer
  0 siblings, 2 replies; 5+ messages in thread
From: Andrea Mayer @ 2026-07-12  2:11 UTC (permalink / raw)
  To: David Ahern, netdev
  Cc: Stephen Hemminger, Nicolas Dichtel, Stefano Salsano,
	Ahmed Abdelsalam, Paolo Lungaroni, Justin Iurman,
	Anthony Doeraene, Andrea Mayer

This series adds the optional "lookup" attribute to seg6 encap routes.
It selects the FIB table used to look up the route for the first SID,
that is the outer IPv6 destination of the encapsulated packet. The
attribute accepts a table number or a table name.

Examples:

  # SID route installed in the underlay table 500
  ip -6 route add fc00::100/128 via fd00::1 dev veth0 table 500

  # encap route in vrf-100; the first SID is looked up in table 500
  ip -6 route add cafe::1/128 vrf vrf-100 \
      encap seg6 mode encap segs fc00::100 lookup 500 dev veth0

  # or if the SID is already handled by the main table
  ip -6 route add cafe::1/128 vrf vrf-100 \
      encap seg6 mode encap segs fc00::100 lookup main dev veth0

The kernel companion series, adding the SEG6_IPTUNNEL_TABLE attribute, is
posted for net-next:

  https://lore.kernel.org/all/20260711162907.6521-1-andrea.mayer@uniroma2.it/T/

The first patch adds the attribute, the second documents it in the
ip-route man page.

Thanks,
Andrea

Andrea Mayer (2):
  seg6: add support for lookup attribute in SRv6 encap routes
  seg6: man: document the lookup attribute for SRv6 encap routes

 ip/iproute.c           |  1 +
 ip/iproute_lwtunnel.c  | 22 +++++++++++++++++++++-
 man/man8/ip-route.8.in | 16 +++++++++++++++-
 3 files changed, 37 insertions(+), 2 deletions(-)

-- 
2.20.1


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

end of thread, other threads:[~2026-07-16  9:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-12  2:11 [PATCH iproute2-next 0/2] seg6: add support for lookup attribute in SRv6 encap routes Andrea Mayer
2026-07-12  2:11 ` [PATCH iproute2-next 1/2] " Andrea Mayer
2026-07-16  9:48   ` Nicolas Dichtel
2026-07-12  2:11 ` [PATCH iproute2-next 2/2] seg6: man: document the lookup attribute for " Andrea Mayer
2026-07-16  9:49   ` Nicolas Dichtel

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