Skip to content

Commit 71082fa

Browse files
spikehaxboe
authored andcommitted
io_uring/zcrx: add selftest
Add a selftest for io_uring zero copy Rx. This test cannot run locally and requires a remote host to be configured in net.config. The remote host must have hardware support for zero copy Rx as listed in the documentation page. The test will restore the NIC config back to before the test and is idempotent. liburing is required to compile the test and be installed on the remote host running the test. Signed-off-by: David Wei <[email protected]> Acked-by: Jakub Kicinski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent d9ac1d5 commit 71082fa

File tree

4 files changed

+497
-0
lines changed

4 files changed

+497
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
2+
iou-zcrx
13
ncdevmem

tools/testing/selftests/drivers/net/hw/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# SPDX-License-Identifier: GPL-2.0+ OR MIT
22

3+
TEST_GEN_FILES = iou-zcrx
4+
35
TEST_PROGS = \
46
csum.py \
57
devlink_port_split.py \
@@ -10,6 +12,7 @@ TEST_PROGS = \
1012
ethtool_rmon.sh \
1113
hw_stats_l3.sh \
1214
hw_stats_l3_gre.sh \
15+
iou-zcrx.py \
1316
loopback.sh \
1417
nic_link_layer.py \
1518
nic_performance.py \
@@ -38,3 +41,5 @@ include ../../../lib.mk
3841
# YNL build
3942
YNL_GENS := ethtool netdev
4043
include ../../../net/ynl.mk
44+
45+
$(OUTPUT)/iou-zcrx: LDLIBS += -luring

0 commit comments

Comments
 (0)