Skip to content

Commit 02f4afe

Browse files
liuhangbinanakryiko
authored andcommitted
selftests/bpf: Add drv mode testing for xdping
As subject, we only test SKB mode for xdping at present. Now add DRV mode for xdping. Signed-off-by: Hangbin Liu <liuhangbin@gmail.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Acked-by: Song Liu <songliubraving@fb.com> Link: https://lore.kernel.org/bpf/20220602032507.464453-1-liuhangbin@gmail.com
1 parent 611edf1 commit 02f4afe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/testing/selftests/bpf/test_xdping.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,5 +95,9 @@ for server_args in "" "-I veth0 -s -S" ; do
9595
test "$client_args" "$server_args"
9696
done
9797

98+
# Test drv mode
99+
test "-I veth1 -N" "-I veth0 -s -N"
100+
test "-I veth1 -N -c 10" "-I veth0 -s -N"
101+
98102
echo "OK. All tests passed"
99103
exit 0

0 commit comments

Comments
 (0)