* [PATCH liburing 1/1] test/send-zerocopy: test fix datagrams over UDP limit
@ 2024-08-20 21:53 Pavel Begunkov
2024-08-21 0:12 ` Jens Axboe
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Pavel Begunkov @ 2024-08-20 21:53 UTC (permalink / raw)
To: io-uring; +Cc: Jens Axboe, asml.silence
Signed-off-by: Pavel Begunkov <[email protected]>
---
test/send-zerocopy.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/test/send-zerocopy.c b/test/send-zerocopy.c
index 8796974..597ecf1 100644
--- a/test/send-zerocopy.c
+++ b/test/send-zerocopy.c
@@ -646,7 +646,8 @@ static int test_inet_send(struct io_uring *ring)
if (!buffers_iov[buf_index].iov_base)
continue;
- if (!tcp && len > 4 * page_sz)
+ /* UDP IPv4 max datagram size is under 64K */
+ if (!tcp && len > (1U << 15))
continue;
conf.buf_index = buf_index;
--
2.45.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH liburing 1/1] test/send-zerocopy: test fix datagrams over UDP limit
2024-08-20 21:53 [PATCH liburing 1/1] test/send-zerocopy: test fix datagrams over UDP limit Pavel Begunkov
@ 2024-08-21 0:12 ` Jens Axboe
2024-08-22 3:30 ` Pavel Begunkov
2024-08-22 3:35 ` Pavel Begunkov
2 siblings, 0 replies; 4+ messages in thread
From: Jens Axboe @ 2024-08-21 0:12 UTC (permalink / raw)
To: io-uring, Pavel Begunkov
On Tue, 20 Aug 2024 22:53:39 +0100, Pavel Begunkov wrote:
>
Applied, thanks!
[1/1] test/send-zerocopy: test fix datagrams over UDP limit
commit: 2d4e799017d64cd2f8304503eef9064931bb3fbd
Best regards,
--
Jens Axboe
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH liburing 1/1] test/send-zerocopy: test fix datagrams over UDP limit
2024-08-20 21:53 [PATCH liburing 1/1] test/send-zerocopy: test fix datagrams over UDP limit Pavel Begunkov
2024-08-21 0:12 ` Jens Axboe
@ 2024-08-22 3:30 ` Pavel Begunkov
2024-08-22 3:35 ` Pavel Begunkov
2 siblings, 0 replies; 4+ messages in thread
From: Pavel Begunkov @ 2024-08-22 3:30 UTC (permalink / raw)
To: io-uring; +Cc: Jens Axboe, asml.silence, Conrad Meyer, linux-block, linux-mm
Signed-off-by: Pavel Begunkov <[email protected]>
---
test/send-zerocopy.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/test/send-zerocopy.c b/test/send-zerocopy.c
index 8796974..597ecf1 100644
--- a/test/send-zerocopy.c
+++ b/test/send-zerocopy.c
@@ -646,7 +646,8 @@ static int test_inet_send(struct io_uring *ring)
if (!buffers_iov[buf_index].iov_base)
continue;
- if (!tcp && len > 4 * page_sz)
+ /* UDP IPv4 max datagram size is under 64K */
+ if (!tcp && len > (1U << 15))
continue;
conf.buf_index = buf_index;
--
2.45.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH liburing 1/1] test/send-zerocopy: test fix datagrams over UDP limit
2024-08-20 21:53 [PATCH liburing 1/1] test/send-zerocopy: test fix datagrams over UDP limit Pavel Begunkov
2024-08-21 0:12 ` Jens Axboe
2024-08-22 3:30 ` Pavel Begunkov
@ 2024-08-22 3:35 ` Pavel Begunkov
2 siblings, 0 replies; 4+ messages in thread
From: Pavel Begunkov @ 2024-08-22 3:35 UTC (permalink / raw)
To: io-uring; +Cc: Jens Axboe, Conrad Meyer, linux-block, linux-mm
On 8/22/24 04:30, Pavel Begunkov wrote:
> Signed-off-by: Pavel Begunkov <[email protected]>
Please ignore, was resent by accident. Apologies for the noise
> ---
> test/send-zerocopy.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/test/send-zerocopy.c b/test/send-zerocopy.c
> index 8796974..597ecf1 100644
> --- a/test/send-zerocopy.c
> +++ b/test/send-zerocopy.c
> @@ -646,7 +646,8 @@ static int test_inet_send(struct io_uring *ring)
>
> if (!buffers_iov[buf_index].iov_base)
> continue;
> - if (!tcp && len > 4 * page_sz)
> + /* UDP IPv4 max datagram size is under 64K */
> + if (!tcp && len > (1U << 15))
> continue;
>
> conf.buf_index = buf_index;
--
Pavel Begunkov
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-08-22 3:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-20 21:53 [PATCH liburing 1/1] test/send-zerocopy: test fix datagrams over UDP limit Pavel Begunkov
2024-08-21 0:12 ` Jens Axboe
2024-08-22 3:30 ` Pavel Begunkov
2024-08-22 3:35 ` Pavel Begunkov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox