selftests/net: ipv6 flowlabel
authorWillem de Bruijn <willemb@google.com>
Mon, 27 May 2019 20:47:51 +0000 (16:47 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 May 2019 00:18:53 +0000 (17:18 -0700)
commit3fb321fde22ddc3adc83e1f690b1fad9dfbd24ef
tree521901adacd0606db67d2eee4383686c7747d3ef
parentcbe9e835946fc792b061d51527c6f006a10419e6
selftests/net: ipv6 flowlabel

Test the IPv6 flowlabel control and datapath interfaces:

Acquire and release the right to use flowlabels with socket option
IPV6_FLOWLABEL_MGR.

Then configure flowlabels on send and read them on recv with cmsg
IPV6_FLOWINFO. Also verify auto-flowlabel if not explicitly set.

This helped identify the issue fixed in commit 95c169251bf73 ("ipv6:
invert flowlabel sharing check in process and user mode")

Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/.gitignore
tools/testing/selftests/net/Makefile
tools/testing/selftests/net/ipv6_flowlabel.c [new file with mode: 0644]
tools/testing/selftests/net/ipv6_flowlabel.sh [new file with mode: 0755]
tools/testing/selftests/net/ipv6_flowlabel_mgr.c [new file with mode: 0644]