ipv6: Implement different admin modes for automatic flow labels
authorTom Herbert <tom@herbertland.com>
Fri, 31 Jul 2015 23:52:12 +0000 (16:52 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 1 Aug 2015 00:07:11 +0000 (17:07 -0700)
commit42240901f7c438636715b9cb6ed93f4441ffc091
tree44dfaaed66aa97ef93dc5921bedfac3808058210
parent67800f9b1f4eb5bbefc32e3f5044097354bc85b3
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>
Documentation/networking/ip-sysctl.txt
include/net/ipv6.h
net/ipv6/af_inet6.c
net/ipv6/ip6_gre.c
net/ipv6/ip6_tunnel.c
net/ipv6/sysctl_net_ipv6.c