]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
io_uring/zcrx: implement device-less mode for zcrx
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 23 Mar 2026 12:43:54 +0000 (12:43 +0000)
committerJens Axboe <axboe@kernel.dk>
Wed, 1 Apr 2026 16:21:12 +0000 (10:21 -0600)
commit825f2764919fca61a88ab2f93dfdfd1d22566264
tree57b1cc4286753e923f406e9f850d9ba3ae6381f0
parent06fc3b6d388dfa9c3df62830e07be828324b99e3
io_uring/zcrx: implement device-less mode for zcrx

Allow creating a zcrx instance without attaching it to a net device.
All data will be copied through the fallback path. The user is also
expected to use ZCRX_CTRL_FLUSH_RQ to handle overflows as it normally
should even with a netdev, but it becomes even more relevant as there
will likely be no one to automatically pick up buffers.

Apart from that, it follows the zcrx uapi for the I/O path, and is
useful for testing, experimentation, and potentially for the copy
receive path in the future if improved.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://patch.msgid.link/674f8ad679c5a0bc79d538352b3042cf0999596e.1774261953.git.asml.silence@gmail.com
[axboe: fix spelling error in uapi header and commit message]
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/uapi/linux/io_uring/zcrx.h
io_uring/zcrx.c
io_uring/zcrx.h