diff options
author | Bui Quang Minh <minhquangbui99@gmail.com> | 2025-02-21 15:59:33 +0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2025-02-21 09:40:09 -0700 |
commit | 92ade52f26555f15880b42405e35f0cfbb8ea7db (patch) | |
tree | 8eca6f159e0d93eac06147e7f3f9514f01a03301 /io_uring/memmap.c | |
parent | 0d2cdc35e805eb50f4a33b7287995ef590f1b916 (diff) |
io_uring: add missing IORING_MAP_OFF_ZCRX_REGION in io_uring_mmap
Allow user to mmap the kernel allocated zerocopy-rx refill queue.
Signed-off-by: Bui Quang Minh <minhquangbui99@gmail.com>
Reviewed-by: Pavel Begunkov <asml.silence@gmail.com>
Reviewed-by: Li Zetao <lizetao1@huawei.com>
Link: https://lore.kernel.org/r/20250221085933.26034-1-minhquangbui99@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/memmap.c')
-rw-r--r-- | io_uring/memmap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/io_uring/memmap.c b/io_uring/memmap.c index 361134544427..76fcc79656b0 100644 --- a/io_uring/memmap.c +++ b/io_uring/memmap.c @@ -271,6 +271,8 @@ static struct io_mapped_region *io_mmap_get_region(struct io_ring_ctx *ctx, return io_pbuf_get_region(ctx, bgid); case IORING_MAP_OFF_PARAM_REGION: return &ctx->param_region; + case IORING_MAP_OFF_ZCRX_REGION: + return &ctx->zcrx_region; } return NULL; } |