diff options
author | Hangbin Liu <liuhangbin@gmail.com> | 2022-06-02 11:25:07 +0800 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2022-06-03 14:53:34 -0700 |
commit | 02f4afebf8a54ba16f99f4f6ca10df3efeac6229 (patch) | |
tree | e55fb40c886bce4402072d630e4ddd7ff2d3007c /tools/testing/selftests/bpf/test_xdping.sh | |
parent | 611edf1bacc51355ccb497915695db7f869cb382 (diff) |
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
Diffstat (limited to 'tools/testing/selftests/bpf/test_xdping.sh')
-rwxr-xr-x | tools/testing/selftests/bpf/test_xdping.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/test_xdping.sh b/tools/testing/selftests/bpf/test_xdping.sh index c2f0ddb45531..c3d82e0a7378 100755 --- 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 |