projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
611edf1
)
selftests/bpf: Add drv mode testing for xdping
author
Hangbin Liu
<liuhangbin@gmail.com>
Thu, 2 Jun 2022 03:25:07 +0000
(11:25 +0800)
committer
Andrii 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
patch
|
blob
|
history
diff --git
a/tools/testing/selftests/bpf/test_xdping.sh
b/tools/testing/selftests/bpf/test_xdping.sh
index c2f0ddb455317a37fa077954de8c64f676eb719e..c3d82e0a7378d9652b701cf2ef8f17d43e271fd2 100755
(executable)
--- a/
tools/testing/selftests/bpf/test_xdping.sh
+++ b/
tools/testing/selftests/bpf/test_xdping.sh
@@
-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