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)
commitfe48230cf2ae27c9e3b96d29908e22e2926fd1ab
tree7143b9ec5d7b54e7450aec2798327cb7c61d8143
parentdc8698cac7aada9b61a612cb819341d84591163e
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]