summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net/udpgso_bench.sh
diff options
context:
space:
mode:
authorWillem de Bruijn2018-11-30 21:32:41 +0100
committerDavid S. Miller2018-12-04 00:58:32 +0100
commitdb63e489c7aa03bab86960d6bcb6bf1fad8eea4e (patch)
treec8c872ef216758c80a3655edb104f00903eced8c /tools/testing/selftests/net/udpgso_bench.sh
parentudp: elide zerocopy operation in hot path (diff)
downloadkernel-qcow2-linux-db63e489c7aa03bab86960d6bcb6bf1fad8eea4e.tar.gz
kernel-qcow2-linux-db63e489c7aa03bab86960d6bcb6bf1fad8eea4e.tar.xz
kernel-qcow2-linux-db63e489c7aa03bab86960d6bcb6bf1fad8eea4e.zip
selftests: extend zerocopy tests to udp
Both msg_zerocopy and udpgso_bench have udp zerocopy variants. Exercise these as part of the standard kselftest run. With udp, msg_zerocopy has no control channel. Ensure that the receiver exits after the sender by accounting for the initial delay in starting them (in msg_zerocopy.sh). Signed-off-by: Willem de Bruijn <willemb@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/net/udpgso_bench.sh')
-rwxr-xr-xtools/testing/selftests/net/udpgso_bench.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/testing/selftests/net/udpgso_bench.sh b/tools/testing/selftests/net/udpgso_bench.sh
index 0f0628613f81..5670a9ffd8eb 100755
--- a/tools/testing/selftests/net/udpgso_bench.sh
+++ b/tools/testing/selftests/net/udpgso_bench.sh
@@ -35,6 +35,9 @@ run_udp() {
echo "udp gso"
run_in_netns ${args} -S 0
+
+ echo "udp gso zerocopy"
+ run_in_netns ${args} -S 0 -z
}
run_tcp() {