OSDN Git Service

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)
commit263d0b35334112dd999afb4246646a2ea9da800d
treee709bccec939c79f8e25d7902a5a89f26b24caae
parent51a0e301a563bf7266854e0698cdf3dc25116f7b
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