Re: [RFC PATCH net-next 2/3] seg6: add SRv6 L2 tunnel device (srl2)
From: Stefano Salsano
Date: Thu Mar 26 2026 - 13:36:08 EST
Il 25/03/2026 14:43, Justin Iurman ha scritto:
On Sun, Mar 22, 2026 at 12:06 AM Andrea Mayer <andrea.mayer@xxxxxxxxxxx> wrote:
Introduce srl2, an Ethernet pseudowire device over SRv6. It
encapsulates L2 frames in IPv6 with a Segment Routing Header for
transmission across an SRv6 network.
The encapsulation logic reuses seg6_do_srh_encap() with
IPPROTO_ETHERNET. The transmit path uses the standard IPv6 tunnel
infrastructure (dst_cache, ip6_route_output, ip6tunnel_xmit).
The device is configured with a segment list for point-to-point
L2 encapsulation.
Usage:
ip link add srl2-0 type srl2 segs fc00::a,fc00::b
Thinking out loud...
We'll likely need SRv6 encap configurations specific to each entry
(i.e., MAC address), rather than (or in addition to) per interface.
agreed, this is the natural next step towards multipoint
we've started exploring the design for this, happy to collaborate if you're interested
We could also add a "mode" (e.g., "normal" mode or reduced mode?).
good point, the infrastructure is already in place, so adding a "mode" parameter to sr6 to support reduced encap should be straightforward
we suggest to address it as an immediate follow-up to this baseline series and we have already some prototype code ready
ciao
Stefano and Andrea
--
*******************************************************************
Prof. Stefano Salsano
Dipartimento Ingegneria Elettronica
Universita' di Roma Tor Vergata
Viale Politecnico, 1 - 00133 Roma - ITALY
http://netgroup.uniroma2.it/Stefano_Salsano/
E-mail : stefano.salsano@xxxxxxxxxxx
Office : (Tel.) +39 06 72597770 (Fax.) +39 06 72597435
*******************************************************************