io_uring/zcrx: let zcrx choose region for mmaping
authorPavel Begunkov <asml.silence@gmail.com>
Sun, 20 Apr 2025 09:31:18 +0000 (10:31 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 21 Apr 2025 11:11:40 +0000 (05:11 -0600)
commit77231d4e46555d30289b1909c2a2f26bcf00f08c
treeafba28ed2b3a865aa22e8576515639ed07201246
parent59bc1ab922bbb36558292c204e56ab951e833384
io_uring/zcrx: let zcrx choose region for mmaping

In preparation for adding multiple ifqs, add a helper returning a region
for mmaping zcrx refill queue. For now it's trivial and returns the same
ctx global ->zcrx_region.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/d9006e2ef8cd5e5b337c2ba2228ede8409eb60f2.1745141261.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/memmap.c
io_uring/memmap.h
io_uring/zcrx.c
io_uring/zcrx.h