Re: [RFC PATCH net-next 2/3] seg6: add SRv6 L2 tunnel device (srl2)

From: Justin Iurman

Date: Wed Mar 25 2026 - 09:52:01 EST


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.

We could also add a "mode" (e.g., "normal" mode or reduced mode?).