selftests/bpf: Add drv mode testing for xdping
authorHangbin Liu <liuhangbin@gmail.com>
Thu, 2 Jun 2022 03:25:07 +0000 (11:25 +0800)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 3 Jun 2022 21:53:34 +0000 (14:53 -0700)
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
tools/testing/selftests/bpf/test_xdping.sh

index c2f0ddb..c3d82e0 100755 (executable)
@@ -95,5 +95,9 @@ for server_args in "" "-I veth0 -s -S" ; do
        test "$client_args" "$server_args"
 done
 
+# Test drv mode
+test "-I veth1 -N" "-I veth0 -s -N"
+test "-I veth1 -N -c 10" "-I veth0 -s -N"
+
 echo "OK. All tests passed"
 exit 0