From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795878520; b=g981oZJLD9a2yXu7Q0MuGUl9CkniquCcbi+aFKJKct3Z9LF76yo0q0rj9m86XX9yjl0B PJIgJQWgLIALXsYdQT31PqVXxSM9qBslqkZzKwAjzJ7AHC7hZZpc7/8ayVR063X4o8ibz qq93KqYkZQOmg4NUiaLm6JKaZPKJMYvy6m/F1guk5YOEFjIQ/vPXxSiSEFKWdant+apL3 TcztkHt+HKygIir1yxb1ZpAZj1snTtWNFIO9YgrIMeya8kLmg6SntlZme0R3DryugZ7Nq CQLLyG7F8RlNmEPHReVXNHUAThVKnlw6trrIQsCGHJKO3Z6pbSaW9TdSHDbn7fAHn5w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795878520; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=y9GLQz/P1DO6rHcfPvp7TBkvtbpdWfc/tcxwLDRJi5A=; b=Oao8beQpDS+E1Qh/8iOhv1wEubPKxWqy87luIHM2oD/cZMl9P8YXgQsmhwcYmUIeg4+I jiHrwohhnH7h1VGuSB1YWdtor0/3HiKhXN+U67Ee62JR5B/P2Z95xHZlqts9V9sxFGRbC ZQjYX/ly6twA8Vbc5SalUQ00Mgc4j+8WM9N/5aNrIsGQcY1ADqAAf3SoELh8ob0gK9hpr YmgMsVv2+oD/7rZ2OHbT1cQuM1lOtLWWhIVt58N4z7bsXxJKoZlP/lRAK2EWBmOQZ+Qr4 JJl/L0mV2dAeAOgyayH3Zs2D3JJhYCcn0FxJVzHFOHbISPjniSx5VO2uZsNxdGiealA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=STQ2mS9y; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 98DAB606A32A for ; Sat, 28 Nov 2026 15:08:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=STQ2mS9y Received: by smtp.kernel.org (Postfix) with ESMTPSA id BC0C21F000C1; Sat, 28 Nov 2026 15:08:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795878520; bh=y9GLQz/P1DO6rHcfPvp7TBkvtbpdWfc/tcxwLDRJi5A=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=STQ2mS9y5MrE0ZznQST079UTyW1OF9KsBx46PcTZfG1EPp4WFu0eKpSoISaYOFoWh WPQwuAdDNX7FG3NP9w+JrkwwYC6qX3/9cD/B0lHpu0DdFC2jVe2/1KgDaUz+ydxDpR 9+8ap0lB+0msrAkd5nGjzYaN7zSnKQwH3YuGEg2tsvz0xO4J1Ko/rP1Sux6TTWKxKe cCVdFJp8CeLg+oTMTqRMMz8vUIcgay64piEib9jdn99h3i33JLa3Cj0Q4JrMYuerA7 XCyWN0VFmkr040DTXKjS/erGg12ev7BlbJdidGf1xbQH7RQbcS0cFPQmMBC8sJBxvx tqHvuCZHNJ2eg== Subject: Re: [PATCH v6 net-next 09/15] selftests: xsk: send UDP over IPv4 or IPv6 between the interface MACs From: netdev-bot+sashiko@kernel.org To: maciej.fijalkowski@intel.com Cc: netdev@vger.kernel.org, magnus.karlsson@intel.com, stfomichev@gmail.com, kuba@kernel.org, pabeni@redhat.com, tushar.vyavahare@intel.com, kerneljasonxing@gmail.com, bjorn@kernel.org Date: Sat, 28 Nov 2026 15:08:39 +0000 Message-ID: <179587851934.3135.12090559509261913535@kernel.org> In-Reply-To: <20261127150527.1122049-10-maciej.fijalkowski@intel.com> References: <20261127150527.1122049-10-maciej.fijalkowski@intel.com> X-sashiko-severity: Low Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Thank you for your contribution! Sashiko AI review found more severe issue(s) in other patches of this series. This mail is only an FYI, in case you want to address the nit picks below when you respin. Low priority / nit picks for your consideration: - [Low] The commit message says that xsk_set_flow() makes "the smallest packet grow to 64 bytes over IPv4 and 88 over IPv6". -- selftests: xsk: send UDP over IPv4 or IPv6 between the interface MACs The xskxceiver test packets change from loopback-ethertype frames between made-up MACs to UDP over IPv4 or IPv6 between the real interface MACs. The flow is set with --src-ip, --dst-ip, --dst-mac and --udp-port. The XDP programs now redirect only test UDP traffic and pass everything else to the stack. The header and minimum packet sizes become variables that xsk_set_flow() sets. > PKT_HDR_SIZE and > MIN_PKT_SIZE now stand for variables set by xsk_set_flow(), so the > smallest packet grows to 64 bytes over IPv4 and 88 over IPv6. [Severity: Low] Does the smallest packet actually grow over IPv4? Before this patch, test_xsk.c and test_xsk.h both had: #define MIN_PKT_SIZE 64 After it, xsk_set_flow() in tools/testing/selftests/net/lib/xsk/test_xsk.c computes: pkt_hdr_size = sizeof(struct ethhdr) + ip_hdr_size + sizeof(struct udphdr) + PKT_HDR_PAD; min_pkt_size = ALIGN(pkt_hdr_size + MIN_PAYLOAD_SIZE, 8); Over IPv4 this is 14 + 20 + 8 + 2 = 44. ALIGN(44 + 20, 8) is 64, the same value as the old constant. Only IPv6 grows, to ALIGN(64 + 20, 8) = 88. The IPv4 payload of a minimum-size packet does change. It drops from 48 bytes (the old PKT_HDR_SIZE was sizeof(struct ethhdr) + 2 = 16) to 20 bytes. Could the commit message say that the IPv4 minimum stays at 64 bytes with a smaller payload, and that only IPv6 grows to 88? -- Sashiko AI review ยท https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261127150527.1122049-1-maciej.fijalkowski%40intel.com