]> asedeno.scripts.mit.edu Git - linux.git/commit
selftests/bpf: add sockopt test that exercises BPF_F_ALLOW_MULTI
authorStanislav Fomichev <sdf@google.com>
Thu, 27 Jun 2019 20:38:53 +0000 (13:38 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 27 Jun 2019 22:25:17 +0000 (15:25 -0700)
commit65b4414a05ebf51966c4a28a2a1b156ab5a01b0f
tree8f93883423a152879c420715a863227d8eb3bf39
parent8a027dc0d8f5d421eba953a7116aea991459b202
selftests/bpf: add sockopt test that exercises BPF_F_ALLOW_MULTI

sockopt test that verifies chaining behavior.

v9:
* setsockopt chaining example

v7:
* rework the test to verify cgroup getsockopt chaining

Cc: Andrii Nakryiko <andriin@fb.com>
Cc: Martin Lau <kafai@fb.com>
Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/.gitignore
tools/testing/selftests/bpf/Makefile
tools/testing/selftests/bpf/progs/sockopt_multi.c [new file with mode: 0644]
tools/testing/selftests/bpf/test_sockopt_multi.c [new file with mode: 0644]