selftests/bpf: add test for bpf_xdp_query xdp-features support
authorLorenzo Bianconi <lorenzo@kernel.org>
Wed, 1 Feb 2023 10:24:23 +0000 (11:24 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 3 Feb 2023 04:48:24 +0000 (20:48 -0800)
commit84050074e51b68e6f1d3e89ebe8f8f6d73472ec3
tree593d009fd00eb910b7ba28af7288673a9269e145
parentb9d460c9245541b13de2369e79688f8e0acc0c3d
selftests/bpf: add test for bpf_xdp_query xdp-features support

Introduce a self-test to verify libbpf bpf_xdp_query capability to dump
the xdp-features supported by the device (lo and veth in this case).

Acked-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://lore.kernel.org/r/534550318a2c883e174811683909544c63632f05.1675245258.git.lorenzo@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/xdp_do_redirect.c
tools/testing/selftests/bpf/prog_tests/xdp_info.c