Subject: Re: [RFC 4/9] ipv6: sr: add support for SRH encapsulation and injection with lwtunnels

From: Roopa Prabhu <[email-masked]>
Date: Mon, 29 Aug 2016 07:52:40 -0700

On 8/26/16, 8:52 AM, David Lebrun wrote:
> This patch creates a new type of interfaceless lightweight tunnel (SEG6),
> enabling the encapsulation and injection of SRH within locally emitted
> packets and forwarded packets.
>
> From a configuration viewpoint, a seg6 tunnel would be configured as follows:
>
>   ip -6 ro ad fc00::1/128 via <gw> encap seg6 mode encap segs fc42::1,fc42::2,fc42::3
>
> Any packet whose destination address is fc00::1 would thus be encapsulated
> within an outer IPv6 header containing the SRH with three segments, and would
> actually be routed to the first segment of the list. If `mode inline' was
> specified instead of `mode encap', then the SRH would be directly inserted
> after the IPv6 header without outer encapsulation.
>
> Signed-off-by: David Lebrun <[email-masked]>
> ---

You will need to account for lwtunnel headroom ?
https://patchwork.ozlabs.org/patch/662632/

thanks,
Roopa