* [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
* RE: [PATCH] io_uring: add missing IORING_MAP_OFF_ZCRX_REGION in io_uring_mmap
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 12:14 ` Pavel Begunkov
2025-02-21 16:41 ` Jens Axboe
2 siblings, 1 reply; 8+ messages in thread
From: lizetao @ 2025-02-21 9:10 UTC (permalink / raw)
To: Bui Quang Minh
Cc: Jens Axboe, Pavel Begunkov, David Wei,
[email protected], [email protected]
Hi,
> -----Original Message-----
> From: Bui Quang Minh <[email protected]>
> Sent: Friday, February 21, 2025 5:00 PM
> To: [email protected]
> Cc: Jens Axboe <[email protected]>; Pavel Begunkov
> <[email protected]>; David Wei <[email protected]>; linux-
> [email protected]; Bui Quang Minh <[email protected]>
> Subject: [PATCH] io_uring: add missing IORING_MAP_OFF_ZCRX_REGION in
> io_uring_mmap
>
> Allow user to mmap the kernel allocated zerocopy-rx refill queue.
>
Maybe fixed-tag should be added here.
Other than that, it looks good to me.
Reviewed-by: Li Zetao <[email protected]>
---
Li Zetao
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] io_uring: add missing IORING_MAP_OFF_ZCRX_REGION in io_uring_mmap
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:14 ` Pavel Begunkov
2025-02-21 16:41 ` Jens Axboe
2 siblings, 0 replies; 8+ messages in thread
From: Pavel Begunkov @ 2025-02-21 12:14 UTC (permalink / raw)
To: Bui Quang Minh, io-uring; +Cc: Jens Axboe, David Wei, linux-kernel
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] io_uring: add missing IORING_MAP_OFF_ZCRX_REGION in io_uring_mmap
2025-02-21 9:10 ` lizetao
@ 2025-02-21 12:20 ` Pavel Begunkov
2025-02-21 16:39 ` Jens Axboe
0 siblings, 1 reply; 8+ messages in thread
From: Pavel Begunkov @ 2025-02-21 12:20 UTC (permalink / raw)
To: lizetao, Bui Quang Minh
Cc: Jens Axboe, David Wei, [email protected],
[email protected]
On 2/21/25 09:10, lizetao wrote:
> Hi,
>
>> -----Original Message-----
>> From: Bui Quang Minh <[email protected]>
>> Sent: Friday, February 21, 2025 5:00 PM
>> To: [email protected]
>> Cc: Jens Axboe <[email protected]>; Pavel Begunkov
>> <[email protected]>; David Wei <[email protected]>; linux-
>> [email protected]; Bui Quang Minh <[email protected]>
>> Subject: [PATCH] io_uring: add missing IORING_MAP_OFF_ZCRX_REGION in
>> io_uring_mmap
>>
>> Allow user to mmap the kernel allocated zerocopy-rx refill queue.
>>
>
> Maybe fixed-tag should be added here.
No need, it's not strictly a fix, and whlist it's not yet sent to
linus, the tags only cause confusion when hashes change, e.g. on rebase.
> Other than that, it looks good to me.
> Reviewed-by: Li Zetao <[email protected]>
--
Pavel Begunkov
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] io_uring: add missing IORING_MAP_OFF_ZCRX_REGION in io_uring_mmap
2025-02-21 12:20 ` Pavel Begunkov
@ 2025-02-21 16:39 ` Jens Axboe
2025-02-21 17:06 ` Pavel Begunkov
0 siblings, 1 reply; 8+ messages in thread
From: Jens Axboe @ 2025-02-21 16:39 UTC (permalink / raw)
To: Pavel Begunkov, lizetao, Bui Quang Minh
Cc: David Wei, [email protected], [email protected]
On 2/21/25 5:20 AM, Pavel Begunkov wrote:
> On 2/21/25 09:10, lizetao wrote:
>> Hi,
>>
>>> -----Original Message-----
>>> From: Bui Quang Minh <[email protected]>
>>> Sent: Friday, February 21, 2025 5:00 PM
>>> To: [email protected]
>>> Cc: Jens Axboe <[email protected]>; Pavel Begunkov
>>> <[email protected]>; David Wei <[email protected]>; linux-
>>> [email protected]; Bui Quang Minh <[email protected]>
>>> Subject: [PATCH] io_uring: add missing IORING_MAP_OFF_ZCRX_REGION in
>>> io_uring_mmap
>>>
>>> Allow user to mmap the kernel allocated zerocopy-rx refill queue.
>>>
>>
>> Maybe fixed-tag should be added here.
>
> No need, it's not strictly a fix, and whlist it's not yet sent to
> linus, the tags only cause confusion when hashes change, e.g. on rebase.
I do like using fixes still, if only to provide a link to the original
commit without needing to dig for it. And yeah there's the occasional
rebase where I forget to update the sha, but those get discovered pretty
quick.
--
Jens Axboe
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] io_uring: add missing IORING_MAP_OFF_ZCRX_REGION in io_uring_mmap
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:14 ` Pavel Begunkov
@ 2025-02-21 16:41 ` Jens Axboe
2 siblings, 0 replies; 8+ messages in thread
From: Jens Axboe @ 2025-02-21 16:41 UTC (permalink / raw)
To: io-uring, Bui Quang Minh; +Cc: Pavel Begunkov, David Wei, linux-kernel
On Fri, 21 Feb 2025 15:59:33 +0700, Bui Quang Minh wrote:
> Allow user to mmap the kernel allocated zerocopy-rx refill queue.
>
>
Applied, thanks!
[1/1] io_uring: add missing IORING_MAP_OFF_ZCRX_REGION in io_uring_mmap
commit: 92ade52f26555f15880b42405e35f0cfbb8ea7db
Best regards,
--
Jens Axboe
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] io_uring: add missing IORING_MAP_OFF_ZCRX_REGION in io_uring_mmap
2025-02-21 16:39 ` Jens Axboe
@ 2025-02-21 17:06 ` Pavel Begunkov
2025-02-21 17:28 ` Jens Axboe
0 siblings, 1 reply; 8+ messages in thread
From: Pavel Begunkov @ 2025-02-21 17:06 UTC (permalink / raw)
To: Jens Axboe, lizetao, Bui Quang Minh
Cc: David Wei, [email protected], [email protected]
On 2/21/25 16:39, Jens Axboe wrote:
> On 2/21/25 5:20 AM, Pavel Begunkov wrote:
>> On 2/21/25 09:10, lizetao wrote:
>>> Hi,
>>>
>>>> -----Original Message-----
>>>> From: Bui Quang Minh <[email protected]>
>>>> Sent: Friday, February 21, 2025 5:00 PM
>>>> To: [email protected]
>>>> Cc: Jens Axboe <[email protected]>; Pavel Begunkov
>>>> <[email protected]>; David Wei <[email protected]>; linux-
>>>> [email protected]; Bui Quang Minh <[email protected]>
>>>> Subject: [PATCH] io_uring: add missing IORING_MAP_OFF_ZCRX_REGION in
>>>> io_uring_mmap
>>>>
>>>> Allow user to mmap the kernel allocated zerocopy-rx refill queue.
>>>>
>>>
>>> Maybe fixed-tag should be added here.
>>
>> No need, it's not strictly a fix, and whlist it's not yet sent to
>> linus, the tags only cause confusion when hashes change, e.g. on rebase.
>
> I do like using fixes still, if only to provide a link to the original
> commit without needing to dig for it. And yeah there's the occasional
> rebase where I forget to update the sha, but those get discovered pretty
> quick.
Maybe a "Link" tag would be better or some more inconsequential
"Refers-to", but otherwise you can call it a feature and avoid the
hassle of fixing it up, and people getting spammed by tooling,
and Stephen having to write about broken hashes.
--
Pavel Begunkov
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] io_uring: add missing IORING_MAP_OFF_ZCRX_REGION in io_uring_mmap
2025-02-21 17:06 ` Pavel Begunkov
@ 2025-02-21 17:28 ` Jens Axboe
0 siblings, 0 replies; 8+ messages in thread
From: Jens Axboe @ 2025-02-21 17:28 UTC (permalink / raw)
To: Pavel Begunkov, lizetao, Bui Quang Minh
Cc: David Wei, [email protected], [email protected]
On 2/21/25 10:06 AM, Pavel Begunkov wrote:
> On 2/21/25 16:39, Jens Axboe wrote:
>> On 2/21/25 5:20 AM, Pavel Begunkov wrote:
>>> On 2/21/25 09:10, lizetao wrote:
>>>> Hi,
>>>>
>>>>> -----Original Message-----
>>>>> From: Bui Quang Minh <[email protected]>
>>>>> Sent: Friday, February 21, 2025 5:00 PM
>>>>> To: [email protected]
>>>>> Cc: Jens Axboe <[email protected]>; Pavel Begunkov
>>>>> <[email protected]>; David Wei <[email protected]>; linux-
>>>>> [email protected]; Bui Quang Minh <[email protected]>
>>>>> Subject: [PATCH] io_uring: add missing IORING_MAP_OFF_ZCRX_REGION in
>>>>> io_uring_mmap
>>>>>
>>>>> Allow user to mmap the kernel allocated zerocopy-rx refill queue.
>>>>>
>>>>
>>>> Maybe fixed-tag should be added here.
>>>
>>> No need, it's not strictly a fix, and whlist it's not yet sent to
>>> linus, the tags only cause confusion when hashes change, e.g. on rebase.
>>
>> I do like using fixes still, if only to provide a link to the original
>> commit without needing to dig for it. And yeah there's the occasional
>> rebase where I forget to update the sha, but those get discovered pretty
>> quick.
>
> Maybe a "Link" tag would be better or some more inconsequential
> "Refers-to", but otherwise you can call it a feature and avoid the
> hassle of fixing it up, and people getting spammed by tooling,
> and Stephen having to write about broken hashes.
Having the sha is nice though so people can just look it up. But yeah
the tag doesn't really exist, and I think we have way too many tags
already, which is why I just use Fixes for stuff like that too. Link
is good for email discussion, though 99% of the time it ends up just
being a patch posting and not really interesting...
--
Jens Axboe
^ permalink raw reply [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