]> www.infradead.org Git - users/hch/misc.git/commit
io_uring/zcrx: return ifq id to the user
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 15 Apr 2025 13:09:45 +0000 (14:09 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 15 Apr 2025 13:37:49 +0000 (07:37 -0600)
commit25744f849524e806a13ade17c4fb83f6888fe954
tree991510136645d767a533cf35afade10ab91e9b98
parentcf960726eb65e8d0bfecbcce6cf95f47b1ffa6cc
io_uring/zcrx: return ifq id to the user

IORING_OP_RECV_ZC requests take a zcrx object id via sqe::zcrx_ifq_idx,
which binds it to the corresponding if / queue. However, we don't return
that id back to the user. It's fine as currently there can be only one
zcrx and the user assumes that its id should be 0, but as we'll need
multiple zcrx objects in the future let's explicitly pass it back on
registration.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/8714667d370651962f7d1a169032e5f02682a73e.1744722517.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/uapi/linux/io_uring.h
io_uring/zcrx.c