All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pavel Begunkov <asml.silence@gmail.com>
To: Bui Quang Minh <minhquangbui99@gmail.com>, io-uring@vger.kernel.org
Cc: Jens Axboe <axboe@kernel.dk>, David Wei <dw@davidwei.uk>,
	linux-kernel@vger.kernel.org
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: <f6694b56-cd1f-45d5-8e5f-b4a98ab2c7af@gmail.com> (raw)
In-Reply-To: <20250221085933.26034-1-minhquangbui99@gmail.com>

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 <asml.silence@gmail.com>

> 
> Signed-off-by: Bui Quang Minh <minhquangbui99@gmail.com>
> ---
>   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 \
    --in-reply-to=f6694b56-cd1f-45d5-8e5f-b4a98ab2c7af@gmail.com \
    --to=asml.silence@gmail.com \
    --cc=axboe@kernel.dk \
    --cc=dw@davidwei.uk \
    --cc=io-uring@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=minhquangbui99@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.