selftests/bpf: Convert xdp_hw_metadata to XDP_USE_NEED_WAKEUP
authorStanislav Fomichev <sdf@google.com>
Mon, 27 Nov 2023 19:03:18 +0000 (11:03 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 29 Nov 2023 22:59:41 +0000 (14:59 -0800)
commit12b4b7963d3cca253db3c31aa7611b988699e30f
treeaea3b91f9f7e44a5a5a0ee22f40e3a4fe0bf162f
parent40808a237d9c8fcaa3eaeefe2ac59e4733907478
selftests/bpf: Convert xdp_hw_metadata to XDP_USE_NEED_WAKEUP

This is the recommended way to run AF_XDP, so let's use it in the test.

Also, some unrelated changes to now blow up the log too much:
- change default mode to zerocopy and add -c to use copy mode
- small fixes for the flags/sizes/prints
- add print_tstamp_delta to print timestamp + reference

Signed-off-by: Stanislav Fomichev <sdf@google.com>
Link: https://lore.kernel.org/r/20231127190319.1190813-13-sdf@google.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/xdp_hw_metadata.c