summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/.gitignore
diff options
context:
space:
mode:
authorStanislav Fomichev <sdf@google.com>2019-08-14 10:37:51 -0700
committerDaniel Borkmann <daniel@iogearbox.net>2019-08-17 23:18:54 +0200
commitc3bbf176fbad5d7470f8a4f311f7c11126ad36c2 (patch)
tree58bd99ef6f3fc2528b6e0d41801238af71e7374e /tools/testing/selftests/bpf/.gitignore
parent9e819ffcfe35c3779166d0fc0088215cf4924c33 (diff)
selftests/bpf: add sockopt clone/inheritance test
Add a test that calls setsockopt on the listener socket which triggers BPF program. This BPF program writes to the sk storage and sets clone flag. Make sure that sk storage is cloned for a newly accepted connection. We have two cloned maps in the tests to make sure we hit both cases in bpf_sk_storage_clone: first element (sk_storage_alloc) and non-first element(s) (selem_link_map). Cc: Martin KaFai Lau <kafai@fb.com> Cc: Yonghong Song <yhs@fb.com> Acked-by: Martin KaFai Lau <kafai@fb.com> Acked-by: Yonghong Song <yhs@fb.com> Signed-off-by: Stanislav Fomichev <sdf@google.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools/testing/selftests/bpf/.gitignore')
-rw-r--r--tools/testing/selftests/bpf/.gitignore1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/.gitignore b/tools/testing/selftests/bpf/.gitignore
index 90f70d2c7c22..60c9338cd9b4 100644
--- a/tools/testing/selftests/bpf/.gitignore
+++ b/tools/testing/selftests/bpf/.gitignore
@@ -42,4 +42,5 @@ xdping
test_sockopt
test_sockopt_sk
test_sockopt_multi
+test_sockopt_inherit
test_tcp_rtt