Skip to content

Commit 66904b3

Browse files
committed
libxdp: add selftest for dispatcher v2 compatibility
With the addition of the XDP device binding, we bumped the dispatcher version. Add a selftest to libxdp that tests for the correct handling of dispatcher v2 loaded on an interface. Signed-off-by: Jalal Mostafa <[email protected]>
1 parent c06cd7b commit 66904b3

File tree

6 files changed

+366
-130
lines changed

6 files changed

+366
-130
lines changed

lib/libxdp/tests/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
22

33
USER_TARGETS := test_xsk_refcnt check_kern_compat test_xdp_devbound test_xdp_frags test_dispatcher_versions test_link_detach test_xsk_umem_flags
4-
BPF_TARGETS := xdp_dispatcher_v1 xdp_pass
4+
BPF_TARGETS := xdp_dispatcher_v1 xdp_dispatcher_v2 xdp_pass
55
USER_LIBS := -lpthread
66

7-
EXTRA_DEPS += xdp_dispatcher_v1.h
7+
EXTRA_DEPS += xdp_dispatcher.h
88
EXTRA_USER_DEPS += test_utils.h
99

1010
TEST_FILE := ./test-libxdp.sh

0 commit comments

Comments
 (0)