public inbox for [email protected]
 help / color / mirror / Atom feed
From: Pavel Begunkov <[email protected]>
To: Bui Quang Minh <[email protected]>, [email protected]
Cc: Jens Axboe <[email protected]>, David Wei <[email protected]>,
	[email protected]
Subject: Re: [PATCH] io_uring: add missing IORING_MAP_OFF_ZCRX_REGION in io_uring_mmap
Date: Fri, 21 Feb 2025 12:14:16 +0000	[thread overview]
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>

On 2/21/25 08:59, Bui Quang Minh wrote:
> Allow user to mmap the kernel allocated zerocopy-rx refill queue.

Reviewed-by: Pavel Begunkov <[email protected]>

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

-- 
Pavel Begunkov


  parent reply	other threads:[~2025-02-21 12:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2025-02-21 16:41 ` Jens Axboe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox