]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Add BPF XDP link selftests
authorAndrii Nakryiko <andriin@fb.com>
Wed, 22 Jul 2020 06:46:01 +0000 (23:46 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 26 Jul 2020 03:37:02 +0000 (20:37 -0700)
commit9724f8a2d6e6b721cdbe032c5340ea529c06bb1a
tree7143b9ec5d7b54e7450aec2798327cb7c61d8143
parente69976f1fbad2648a6b9bf9a1ad224219b4ea317
selftests/bpf: Add BPF XDP link selftests

Add selftest validating all the attachment logic around BPF XDP link. Test
also link updates and get_obj_info() APIs.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200722064603.3350758-9-andriin@fb.com
tools/testing/selftests/bpf/prog_tests/xdp_link.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/test_xdp_link.c [new file with mode: 0644]