]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
selftests/bpf: switch to new libbpf XDP APIs
authorAndrii Nakryiko <andrii@kernel.org>
Thu, 20 Jan 2022 06:14:21 +0000 (22:14 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 21 Jan 2022 05:22:02 +0000 (21:22 -0800)
commit544356524dd6ff5b0bb9099861ab8493a4387def
tree2f8db0ee9bd828e3a93f10b21befea83b52ace63
parentc86575eccab24d583db0169ded342eb215b781c9
selftests/bpf: switch to new libbpf XDP APIs

Switch to using new bpf_xdp_*() APIs across all selftests. Take
advantage of a more straightforward and user-friendly semantics of
old_prog_fd (0 means "don't care") in few places.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20220120061422.2710637-4-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/xdp_attach.c
tools/testing/selftests/bpf/prog_tests/xdp_cpumap_attach.c
tools/testing/selftests/bpf/prog_tests/xdp_devmap_attach.c
tools/testing/selftests/bpf/prog_tests/xdp_info.c
tools/testing/selftests/bpf/prog_tests/xdp_link.c
tools/testing/selftests/bpf/xdp_redirect_multi.c
tools/testing/selftests/bpf/xdping.c