public inbox for [email protected]
 help / color / mirror / Atom feed
* [PATCH] io_uring: add missing IORING_MAP_OFF_ZCRX_REGION in io_uring_mmap
@ 2025-02-21  8:59 Bui Quang Minh
  2025-02-21  9:10 ` lizetao
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Bui Quang Minh @ 2025-02-21  8:59 UTC (permalink / raw)
  To: io-uring
  Cc: Jens Axboe, Pavel Begunkov, David Wei, linux-kernel,
	Bui Quang Minh

Allow user to mmap the kernel allocated zerocopy-rx refill queue.

Signed-off-by: Bui Quang Minh <[email protected]>
---
 io_uring/memmap.c | 2 ++
 1 file changed, 2 insertions(+)

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;
 }
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-02-21 17:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-21  8:59 [PATCH] io_uring: add missing IORING_MAP_OFF_ZCRX_REGION in io_uring_mmap Bui Quang Minh
2025-02-21  9:10 ` lizetao
2025-02-21 12:20   ` Pavel Begunkov
2025-02-21 16:39     ` Jens Axboe
2025-02-21 17:06       ` Pavel Begunkov
2025-02-21 17:28         ` Jens Axboe
2025-02-21 12:14 ` Pavel Begunkov
2025-02-21 16:41 ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox