v2: seg6_lwt_headroom() is not relevant for lwtunnel_input_redirect() use cases, and L2ENCAP only uses this redirection. Fix incoherence between arbitrary MAC header size support and fixed headroom computation by setting only LWTUNNEL_STATE_INPUT_REDIRECT for L2ENCAP mode.
This patch series provides several updates for the SRv6 implementation. The first patch leverages the existing infrastructure to support encapsulation of IPv4 packets. The second patch implements the T.Encaps.L2 SR function, enabling to encapsulate an L2 Ethernet frame within an IPv6+SRH packet. The last three patches update the seg6local lightweight tunnel, and mainly implement four new actions: End.T, End.DX2, End.DX4 and End.DT6. David Lebrun (5): ipv6: sr: add support for ip4ip6 encapsulation ipv6: sr: add support for encapsulation of L2 frames ipv6: sr: enforce IPv6 packets for seg6local lwt ipv6: sr: add helper functions for seg6local ipv6: sr: implement additional seg6local actions include/net/seg6.h | 3 +- include/uapi/linux/seg6_iptunnel.h | 18 ++- net/ipv6/Kconfig | 1 + net/ipv6/seg6_iptunnel.c | 72 +++++++-- net/ipv6/seg6_local.c | 314 ++++++++++++++++++++++++++++--------- 5 files changed, 317 insertions(+), 91 deletions(-) -- 2.10.2