Re: [PATCH liburing 1/1] test/send-zerocopy: test fix datagrams over UDP limit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 8/22/24 04:30, Pavel Begunkov wrote:
Signed-off-by: Pavel Begunkov <asml.silence@xxxxxxxxx>

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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux