Skip to content

Commit 92ade52

Browse files
minhbq-99axboe
authored andcommitted
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>
1 parent 0d2cdc3 commit 92ade52

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

io_uring/memmap.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,8 @@ static struct io_mapped_region *io_mmap_get_region(struct io_ring_ctx *ctx,
271271
return io_pbuf_get_region(ctx, bgid);
272272
case IORING_MAP_OFF_PARAM_REGION:
273273
return &ctx->param_region;
274+
case IORING_MAP_OFF_ZCRX_REGION:
275+
return &ctx->zcrx_region;
274276
}
275277
return NULL;
276278
}

0 commit comments

Comments
 (0)