]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcface3daf21ff19e6c42479fd7211e2bd774efac
tree521901adacd0606db67d2eee4383686c7747d3ef
parentac08b75adabbf4b7a29df2be9b1f4b7331ea0023
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 459af98ffe657 ("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]