Skip to contentSkip to conversation

selftests/bpf: add drv mode testing for xdping

PATCH Applied Hangbin Liu 3 participants 3 messages Jun 2, 2022 – Jun 3, 2022

Subsystems (6)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 tools/testing/selftests/bpf/test_xdping.sh | 4 ++++
 1 file changed, 4 insertions(+)
tools/testing/selftests/bpf/test_xdping.sh +4 -0
index c2f0ddb45531..c3d82e0a7378 100755
@@ -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
Signature · 1 line
2.35.1
reviewer Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Hangbin Liu

As subject, we only test SKB mode for xdping at present. Now add DRV mode for xdping.

Quoted 21 lines
---
 tools/testing/selftests/bpf/test_xdping.sh | 4 ++++
 1 file changed, 4 insertions(+)
tools/testing/selftests/bpf/test_xdping.sh +4 -1
index c2f0ddb45531..c3d82e0a7378 100755
@@ -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
--

2.35.1

#2 lore raw
In reply to Hangbin Liu
This patch was applied to bpf/bpf-next.git (master) by Andrii Nakryiko <[email protected]>:

Hello:

This patch was applied to bpf/bpf-next.git (master) by Andrii Nakryiko <[email protected]>:

Quoted 7 lines · On Thu, 2 Jun 2022 11:25:07 +0800 you wrote:

As subject, we only test SKB mode for xdping at present. Now add DRV mode for xdping.

---
 tools/testing/selftests/bpf/test_xdping.sh | 4 ++++
 1 file changed, 4 insertions(+)

Here is the summary with links:
- [bpf-next] selftests/bpf: add drv mode testing for xdping

    https://git.kernel.org/bpf/bpf-next/c/43496801c7bd

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html