]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0f59eec24404feb18073f33657280bf52547e318
tree44dfaaed66aa97ef93dc5921bedfac3808058210
parenta0d320849f4a56159a2a91c386053034f954f283
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