aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/net/io_uring_zerocopy_tx.sh
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2022-09-01 11:54:05 +0100
committerJens Axboe <axboe@kernel.dk>2022-09-01 09:13:33 -0600
commit916d72c10a4ca80ea51f1421e774cb765b53f28f (patch)
tree539b78716752b7fde2bc22e90f69d6ba573f95a0 /tools/testing/selftests/net/io_uring_zerocopy_tx.sh
parentio_uring/net: simplify zerocopy send user API (diff)
downloadwireguard-linux-916d72c10a4ca80ea51f1421e774cb765b53f28f.tar.xz
wireguard-linux-916d72c10a4ca80ea51f1421e774cb765b53f28f.zip
selftests/net: return back io_uring zc send tests
Enable io_uring zerocopy send tests back and fix them up to follow the new inteface. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/c8e5018c516093bdad0b6e19f2f9847dea17e4d2.1662027856.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/testing/selftests/net/io_uring_zerocopy_tx.sh')
-rwxr-xr-xtools/testing/selftests/net/io_uring_zerocopy_tx.sh10
1 files changed, 3 insertions, 7 deletions
diff --git a/tools/testing/selftests/net/io_uring_zerocopy_tx.sh b/tools/testing/selftests/net/io_uring_zerocopy_tx.sh
index 6a65e4437640..32aa6e9dacc2 100755
--- a/tools/testing/selftests/net/io_uring_zerocopy_tx.sh
+++ b/tools/testing/selftests/net/io_uring_zerocopy_tx.sh
@@ -25,15 +25,11 @@ readonly path_sysctl_mem="net.core.optmem_max"
# No arguments: automated test
if [[ "$#" -eq "0" ]]; then
IPs=( "4" "6" )
- protocols=( "tcp" "udp" )
for IP in "${IPs[@]}"; do
- for proto in "${protocols[@]}"; do
- for mode in $(seq 1 3); do
- $0 "$IP" "$proto" -m "$mode" -t 1 -n 32
- $0 "$IP" "$proto" -m "$mode" -t 1 -n 32 -f
- $0 "$IP" "$proto" -m "$mode" -t 1 -n 32 -c -f
- done
+ for mode in $(seq 1 3); do
+ $0 "$IP" udp -m "$mode" -t 1 -n 32
+ $0 "$IP" tcp -m "$mode" -t 1 -n 32
done
done