]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Add ene-to-end test for bpf_sk_storage_* helpers
authorMartin KaFai Lau <kafai@fb.com>
Fri, 26 Apr 2019 23:39:54 +0000 (16:39 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 27 Apr 2019 16:07:05 +0000 (09:07 -0700)
commit4f4710c22f6e8afd17d12c9b33925f7b54063bbc
treee709bccec939c79f8e25d7902a5a89f26b24caae
parent139e762b8b73ebf80f680b3874997c2d430050d4
bpf: Add ene-to-end test for bpf_sk_storage_* helpers

This patch rides on an existing BPF_PROG_TYPE_CGROUP_SKB test
(test_sock_fields.c) to do a TCP end-to-end test on the new
bpf_sk_storage_* helpers.

Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/bpf_helpers.h
tools/testing/selftests/bpf/progs/test_sock_fields_kern.c
tools/testing/selftests/bpf/test_sock_fields.c