From patchwork Thu Aug 22 03:30:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavel Begunkov X-Patchwork-Id: 13772568 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id DBF5AC3DA4A for ; Thu, 22 Aug 2024 03:30:28 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4C1FA6B0292; Wed, 21 Aug 2024 23:30:28 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 472076B0293; Wed, 21 Aug 2024 23:30:28 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3606E6B0294; Wed, 21 Aug 2024 23:30:28 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 0EAD06B0292 for ; Wed, 21 Aug 2024 23:30:28 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 76E4CA7D01 for ; Thu, 22 Aug 2024 03:30:27 +0000 (UTC) X-FDA: 82478453694.15.1B8F3F9 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) by imf19.hostedemail.com (Postfix) with ESMTP id A99F41A0005 for ; Thu, 22 Aug 2024 03:30:25 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=dNmlnNMJ; spf=pass (imf19.hostedemail.com: domain of asml.silence@gmail.com designates 209.85.128.47 as permitted sender) smtp.mailfrom=asml.silence@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1724297362; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=zPiuOc0Ds4TXOsTSymRy71QH64OUPsa/XwqfFqjnNV8=; b=zHyrs60sRBC5NvPze3Wzsn8j8iwLn0cxHQSSJxMheTuRsPOVw/MeWaEDfcAoFQKvryaRuR 7FrEpfw/2k1ZI8k1C1QiRxYVuSmBan09kZ8nXjIaDgVf4kXhvv/SQaO3rmAa58U14K4UuQ 6xYQqhK7A6mfz+j1+2pGpXKK8x/4Cso= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=dNmlnNMJ; spf=pass (imf19.hostedemail.com: domain of asml.silence@gmail.com designates 209.85.128.47 as permitted sender) smtp.mailfrom=asml.silence@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1724297362; a=rsa-sha256; cv=none; b=4i96kRGUyj96MK4hCDArgn0i1UE0CeLn6S6s1/zTps4Ex1lvauYWoU5UucKJ/I/1zeGzGe FALCBfRPn0otXXzKpByaWqf9o8FUeAAQAmS9lwgrO0WXY4fmKL9yr5hfXipvY4WcPMaHHG vhGpsFSd6eQMruQwyCSYtXXNYy7Qn8E= Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-428119da952so1895155e9.0 for ; Wed, 21 Aug 2024 20:30:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1724297424; x=1724902224; darn=kvack.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=zPiuOc0Ds4TXOsTSymRy71QH64OUPsa/XwqfFqjnNV8=; b=dNmlnNMJTXkW+gwVZxeKAXyz2tByNLA3K1mMkTVYserpszmSq9f7lYJ3PpMaSvNaWv T2FloGp0blk9N0le4t/v8hCrVVZqUAnmiqaICUS3nuZxWAYmSswLbNi2hEAUl213r8oM H8CcuLjSNtsOX8H0PINWjuD7Iuved4IcuvfF2rJRu+twtUdCjD3jYZImLWkZJJTkOfHH aS27awr956GSkr5ULd8K0s1BFlkfJEqFh26KiU0HqsgP4G8X7ZY9VRT8SusPw4N2mFJS haXpy3zsWKqVRVfpRFR4yH0lSAMkFDt2g79qEslujfnWPCI5APiQWjN4YzlAqVOOYKLA B5eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724297424; x=1724902224; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=zPiuOc0Ds4TXOsTSymRy71QH64OUPsa/XwqfFqjnNV8=; b=AdUgxzGfnuuqD+HlxMnqJsjkg/mW1B1f0ZO02T7gfVg6PWZZy+LjIuom3CJQ66Odbs gIyv2JZS3BxfE13cAoMh28/knqwFMhY2stBChnSyLT9YcXNVNVLLUwB4qCDj81UnOKwQ +iIHxeRWCOWnxg9MFcq/EhSyE3qlJLC5LblD44rAgYUjjcDo6GeS0/DTBeN9t4qOoui1 SqOeAR6JdLWtW7HAvUKO3rWUk17g6yffdBN5wSSJ0r7Vw8rFMOi0BMGd6pkt4ogq5mUD 9jrGkQPKSgC32wA8aAVVB703P/UyZFNDQWuAEUZAFljXqTtXH62rscKGWUoHOJN7vuFJ ThiA== X-Forwarded-Encrypted: i=1; AJvYcCUaEJT7KHEu9jBalCSQM/bjQIMNe6V/YQ4bMz3uoeB1noX0FhPzpsojzOVOiZ0sUxY4SQVjhGVeew==@kvack.org X-Gm-Message-State: AOJu0YyOm3AufQsn7wS7+d1PbTHkC57bUzD+RrkAhcNwh3aZA3xDOiiK RK+xQhiIT2O6yCH9lWyBtoJDqt9rYlGlpJkyBtUdnMfk7KrFMi31 X-Google-Smtp-Source: AGHT+IHenptdiG4MQzOA4NtwZariaK0Ofl1Vk5xeSTGIEmQVw2fxOjF32uiu08JG3g/Y5jztts0gaA== X-Received: by 2002:a05:6000:246:b0:371:8cb7:5d6b with SMTP id ffacd0b85a97d-372fd728d5cmr2311120f8f.53.1724297423651; Wed, 21 Aug 2024 20:30:23 -0700 (PDT) Received: from 127.0.0.1localhost ([148.252.128.6]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42abef81777sm44690655e9.27.2024.08.21.20.30.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Aug 2024 20:30:23 -0700 (PDT) From: Pavel Begunkov To: io-uring@vger.kernel.org Cc: Jens Axboe , asml.silence@gmail.com, Conrad Meyer , 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 Message-ID: <285eca872bd46640ed209c0b09628f53744cb3ab.1724110909.git.asml.silence@gmail.com> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-Stat-Signature: n8rh5wsretmktkonbyn97uztsrzkp5tf X-Rspam-User: X-Rspamd-Queue-Id: A99F41A0005 X-Rspamd-Server: rspam02 X-HE-Tag: 1724297425-371969 X-HE-Meta: U2FsdGVkX1/aF3XUsI4IniJ9uaoA8bi/RtyIaJFF8AQ1eDnssu/w6fiEuLO0gqz9uvd2hQTf6G4ukho7NRSJaPp/BYv8HK2Dp83Xp53VXm2pPW5rEVcAL5PmSUhhOPbwsmEWdoC499kzCNMOkVSi2ClXKx4BkyyDYQHzZ4xTnE1d3oFV2IBUfotGQ7YoCxvnQ8FMFvnGAqvp7D1hmj95nx33NcXnjkpmvOK0jrDsiGpYHTh/N1mYqtpc4FbOgK3WPVLs/t1m5+m4eBwUG+C2s4OJcmARkwWPe9e0LR9CkhdMIDmr7Wh2Mea9UlXy7/N5sDicJZ9WF1dwKAy3mzAihEIDrztRsPItOtBvtauP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lvVbmR0= X-Bogosity: Ham, tests=bogofilter, spamicity=0.035503, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Signed-off-by: Pavel Begunkov --- 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;