On Tue, 24 Apr 2018 19:59:55 +0200 Ahmed Abdelsalam <amsala...@gmail.com> wrote:
> This patch has been tested for IPv6, IPv4, and L2 traffic. > > Signed-off-by: Ahmed Abdelsalam <amsala...@gmail.com> > --- > include/net/netns/ipv6.h | 1 + > net/ipv6/seg6_iptunnel.c | 24 ++++++++++++++++++++++-- > net/ipv6/sysctl_net_ipv6.c | 8 ++++++++ > 3 files changed, 31 insertions(+), 2 deletions(-) > > diff --git a/include/net/netns/ipv6.h b/include/net/netns/ipv6.h > index 97b3a54..c978a31 100644 > --- a/include/net/netns/ipv6.h > +++ b/include/net/netns/ipv6.h > @@ -43,6 +43,7 @@ struct netns_sysctl_ipv6 { > int max_hbh_opts_cnt; > int max_dst_opts_len; > int max_hbh_opts_len; > + int seg6_flowlabel; > }; > > struct netns_ipv6 { > diff --git a/net/ipv6/seg6_iptunnel.c b/net/ipv6/seg6_iptunnel.c > index 5fe1394..3d9cd86 100644 > --- a/net/ipv6/seg6_iptunnel.c > +++ b/net/ipv6/seg6_iptunnel.c > @@ -91,6 +91,24 @@ static void set_tun_src(struct net *net, struct net_device > *dev, > rcu_read_unlock(); > } > > +/* Compute flowlabel for outer IPv6 header */ > +__be32 seg6_make_flowlabel(struct net *net, struct sk_buff *skb, > + struct ipv6hdr *inner_hdr) David, please take v3 of the patch. I re-defined seg6_make_flowlabel () as static to fix the kbuild test robot. -- Ahmed Abdelsalam <amsala...@gmail.com>