]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Extend bind v4/v6 selftests for mark/prio/bindtoifindex
authorDaniel Borkmann <daniel@iogearbox.net>
Mon, 11 Jan 2021 23:09:40 +0000 (00:09 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 12 Jan 2021 22:44:53 +0000 (14:44 -0800)
commitaaa9a72f7e9c4039851423001e73e7de5179e3ec
tree073a763e335ea9a75815aba01e34e8c6d96ff764
parentfabdf71f2dbc6064cf7798b6ce4f4da93df53d8a
bpf: Extend bind v4/v6 selftests for mark/prio/bindtoifindex

Extend existing cgroup bind4/bind6 tests to add coverage for setting and
retrieving SO_MARK, SO_PRIORITY and SO_BINDTOIFINDEX at the bind hook.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/384fdc90e5fa83f8335a37aa90fa2f5f3661929c.1610406333.git.daniel@iogearbox.net
tools/testing/selftests/bpf/progs/bind4_prog.c
tools/testing/selftests/bpf/progs/bind6_prog.c