OSDN Git Service

selftests/bpf: Add a test case for loading BPF_SK_SKB_VERDICT
authorCong Wang <cong.wang@bytedance.com>
Wed, 31 Mar 2021 02:32:37 +0000 (19:32 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 1 Apr 2021 17:56:14 +0000 (10:56 -0700)
commit8d7cb74f2ccb5486ab8c631a8fcdc7621bbbc42c
treebdcfa87c0cf209ce0de77a4b8cfaec4302e4f10f
parentd6378af615275435ce6e390a538c980ac19b6659
selftests/bpf: Add a test case for loading BPF_SK_SKB_VERDICT

This adds a test case to ensure BPF_SK_SKB_VERDICT and
BPF_SK_STREAM_VERDICT will never be attached at the same time.

Signed-off-by: Cong Wang <cong.wang@bytedance.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20210331023237.41094-17-xiyou.wangcong@gmail.com
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
tools/testing/selftests/bpf/progs/test_sockmap_skb_verdict_attach.c [new file with mode: 0644]