diff options
author | Tom Herbert <tom@herbertland.com> | 2015-07-31 16:52:12 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-07-31 17:07:11 -0700 |
commit | 42240901f7c438636715b9cb6ed93f4441ffc091 (patch) | |
tree | 44dfaaed66aa97ef93dc5921bedfac3808058210 /net/ipv6/ip6_tunnel.c | |
parent | 67800f9b1f4eb5bbefc32e3f5044097354bc85b3 (diff) | |
download | linux-42240901f7c438636715b9cb6ed93f4441ffc091.tar.gz linux-42240901f7c438636715b9cb6ed93f4441ffc091.tar.bz2 linux-42240901f7c438636715b9cb6ed93f4441ffc091.zip |
ipv6: Implement different admin modes for automatic flow labels
Change the meaning of net.ipv6.auto_flowlabels to provide a mode for
automatic flow labels generation. There are four modes:
0: flow labels are disabled
1: flow labels are enabled, sockets can opt-out
2: flow labels are allowed, sockets can opt-in
3: flow labels are enabled and enforced, no opt-out for sockets
np->autoflowlabel is initialized according to the sysctl value.
Signed-off-by: Tom Herbert <tom@herbertland.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ip6_tunnel.c')
-rw-r--r-- | net/ipv6/ip6_tunnel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ip6_tunnel.c b/net/ipv6/ip6_tunnel.c index 54e694c4af0e..b0ab420612bc 100644 --- a/net/ipv6/ip6_tunnel.c +++ b/net/ipv6/ip6_tunnel.c @@ -1095,7 +1095,7 @@ static int ip6_tnl_xmit2(struct sk_buff *skb, skb_reset_network_header(skb); ipv6h = ipv6_hdr(skb); ip6_flow_hdr(ipv6h, INET_ECN_encapsulate(0, dsfield), - ip6_make_flowlabel(net, skb, fl6->flowlabel, false, fl6)); + ip6_make_flowlabel(net, skb, fl6->flowlabel, true, fl6)); ipv6h->hop_limit = t->parms.hop_limit; ipv6h->nexthdr = proto; ipv6h->saddr = fl6->saddr; |