aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/net/msg_zerocopy.sh
diff options
context:
space:
mode:
authorWillem de Bruijn <willemb@google.com>2018-11-30 15:32:41 -0500
committerDavid S. Miller <davem@davemloft.net>2018-12-03 15:58:32 -0800
commitdb63e489c7aa03bab86960d6bcb6bf1fad8eea4e (patch)
treec8c872ef216758c80a3655edb104f00903eced8c /tools/testing/selftests/net/msg_zerocopy.sh
parentudp: elide zerocopy operation in hot path (diff)
downloadwireguard-linux-db63e489c7aa03bab86960d6bcb6bf1fad8eea4e.tar.xz
wireguard-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/msg_zerocopy.sh')
-rwxr-xr-xtools/testing/selftests/net/msg_zerocopy.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/net/msg_zerocopy.sh b/tools/testing/selftests/net/msg_zerocopy.sh
index c43c6debda06..825ffec85cea 100755
--- a/tools/testing/selftests/net/msg_zerocopy.sh
+++ b/tools/testing/selftests/net/msg_zerocopy.sh
@@ -25,6 +25,8 @@ readonly path_sysctl_mem="net.core.optmem_max"
if [[ "$#" -eq "0" ]]; then
$0 4 tcp -t 1
$0 6 tcp -t 1
+ $0 4 udp -t 1
+ $0 6 udp -t 1
echo "OK. All tests passed"
exit 0
fi