From: Pavel Begunkov <asml.silence@gmail.com>
To: io-uring@vger.kernel.org
Cc: Jens Axboe <axboe@kernel.dk>,
asml.silence@gmail.com, Conrad Meyer <conradmeyer@meta.com>,
linux-block@vger.kernel.org, linux-mm@kvack.org
Subject: [PATCH liburing 1/1] test/send-zerocopy: test fix datagrams over UDP limit
Date: Thu, 22 Aug 2024 04:30:36 +0100 [thread overview]
Message-ID: <285eca872bd46640ed209c0b09628f53744cb3ab.1724110909.git.asml.silence@gmail.com> (raw)
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
---
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
next reply other threads:[~2024-08-22 3:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-22 3:30 Pavel Begunkov [this message]
2024-08-22 3:35 ` Pavel Begunkov
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=285eca872bd46640ed209c0b09628f53744cb3ab.1724110909.git.asml.silence@gmail.com \
--to=asml.silence@gmail.com \
--cc=axboe@kernel.dk \
--cc=conradmeyer@meta.com \
--cc=io-uring@vger.kernel.org \
--cc=linux-block@vger.kernel.org \
--cc=linux-mm@kvack.org \
/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