]> www.infradead.org Git - users/jedix/linux-maple.git/commit
io_uring/zcrx: add selftest
authorDavid Wei <dw@davidwei.uk>
Sat, 15 Feb 2025 00:09:46 +0000 (16:09 -0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 17 Feb 2025 12:41:09 +0000 (05:41 -0700)
commit71082faa2c648a2adc1167b37565e195a8df1bc7
tree6497cb35464a40d69f33ed4d594e851d2938e57a
parentd9ac1d5fc9510a170eb43e8c129b8e1cd5e1c3e1
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 <dw@davidwei.uk>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Link: https://lore.kernel.org/r/20250215000947.789731-12-dw@davidwei.uk
Signed-off-by: Jens Axboe <axboe@kernel.dk>
tools/testing/selftests/drivers/net/hw/.gitignore
tools/testing/selftests/drivers/net/hw/Makefile
tools/testing/selftests/drivers/net/hw/iou-zcrx.c [new file with mode: 0644]
tools/testing/selftests/drivers/net/hw/iou-zcrx.py [new file with mode: 0755]