From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.208.51 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796109143; b=YlS2Ew9T3CV8/V7gr+jlDlvJCWCBF7mC4PWzFnVNytdATDxNGJlJIUFmRHog4bvcPRkM 5M+WzXWhoiGSm0sj9Ofxy1Y2w+FIZo7jFXqK4dpcNbuA/Rq2Tia6F6kHxWMnG8b2UzuZt oZ+cIrRhtW2Qpdiro0UHHUe5AW2e7yElyjhGOHtJBvUbUcg0CmIiN4SY9e+k4ZWZHVj+J pLJ3D1nJYGRBwFqBoS6Dm1bBgpiEO7uSARi9MiaY8kyct5LpR8qLc6CnnUjkF0oWtGD5/ WIQ+qSAG+fWan4FFysm89HdZeo4h0CRYkYg1Qi3SuICiwNtVTLLqkbz4AFXpwyky/1g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796109143; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:MIME-Version: Content-Transfer-Encoding; bh=C/Pg2cqIlCTtgxo4YXnUvLycDq25+RMCWCZP9JnOpjs=; b=w9BhfQVksQosmoE+B5y4urpeDHW5lcYEXKHaQS6kUqrUEF1GGlln25sRr0W+V6QHwI8v KU9FjlGXXQHr6m68pSXU7JMvNECwqn3zAyv88dNSUTW06+0CGeA22sCKcOrtB3iMQUG6p 6skQWEqr1hCITSW8D6DwPHgW9ohrbD/yV+UwnctxxHVQE4b2OlWF3z35nwveawQK5I2EZ 5ko1aQeCu2y8yEa+AzpFP+I8RiNXPUj7R5pyUnyIalxlML0Z/+87iVDJJaem6iEHttce4 lnHmLW9d921ozSrRz/YBAOsGMVzmm4G75grLNbywepqLlLFpZRnUHBTUauVUdJIHsCg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b="E1kKDu/Q"; arc=none smtp.remote-ip=209.85.208.51 Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ADB82606A698 for ; Tue, 1 Dec 2026 07:12:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org ADB82606A698 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=E1kKDu/Q Received: by mail-ed1-f51.google.com with SMTP id 4fb4d7f45d1cf-6bb06dc1ffcso1573125a12.3 for ; Mon, 30 Nov 2026 23:12:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796109137; x=1796713937; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=C/Pg2cqIlCTtgxo4YXnUvLycDq25+RMCWCZP9JnOpjs=; b=E1kKDu/Q2wP0X6Izf2dIPyspjIoSZRRs45aByriMyx6YXJpYpbX6gQSBrHbWkZLut4 v6D/qUnQLrzn0ROM7Q/pKF6Xto7brMVMqFOikwLYv5Fj5M4QuFxB8hsHjk9XyxAaOSIu /tvsjfcQHq0I4dneJFNAT7cYzsV2ZaVfDpUIbp8JUw06iGIgAt++dDVMuCtsEhfq+3ZS YagqDwZASLbzCmRm8E5uqQBnUJZeyf4cT1Jp+GsT3xdnJA9JxLPfpGVosZAGwJRi5w1G 1vsk1HDqU2jRUs5mK80UM/5J/TsvGv/rwxnoiFU+nCPVS1BagDrrsHkXM7RdZ/JSl0p/ cQnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796109137; x=1796713937; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=C/Pg2cqIlCTtgxo4YXnUvLycDq25+RMCWCZP9JnOpjs=; b=1x5CEKtoeWE999wmJo/6W3cDkdCSU5itoE3125nOrM5CDu+WoY8qHv2S0ArOX4vjsw jaClwUf3wF7mlHBt1LH6Bn1I0q12BHiNm8uQYGaqau8S41CRuldCFn3jirCAUMvPLIk0 94hD29EmjOGDGzMnwBIGsn37x1sVg78LP9+uH36qv24CDNQZ8mmEEc9e3z+0ZhRLhDJj vquciSQzVI8a0/fkzW8Bfc4sXrecXK39fWi6GdfzCM73xh3SH7VeKwYU05hedkYDren/ ekxgzHsHbatz5Jc8nLrbUREC8lJS5flgAE+5qzYUictH/KVzyrQ0dtW7gf4CQD1geUqP wdMg== X-Forwarded-Encrypted: i=1; AL+hErF1C+54t0iDEYmSlDgJE5ZuFfoqyQVO/uwlDwkrvcKltV0OBeBnsol5HRobsE6y08h1zbP29kw=@vger.kernel.org X-Gm-Message-State: APuU4Z9bL7PXnNcjZm/DcaCxlESFKKDPlfDT6YjUHlkK7hW6XbKeAmhW t009EtKXhF9WsQXvBXwtm5XZzuWR5jaaQNblacLf9BAeAjHvg3DoDFaA X-Gm-Gg: AZFdTZeJaqPNBIIDPtMd6q36gxzSIS6TQ2kTVbzai1TNWPYbXfJ14H+SMt0EncDe5m7 l+U22JIUgXqWBINAEVqFW0uVra+yqLlNQ4eeURA4yJACL+J683kHLRllznRXIEutA7DoDkas27X Uq+7xr/Dt3Wwdv1CjIqs0hnsaCZnNOUdT/b1fZqVqLkqpK3uN2LbhjpDfAlYnUw/TeEvsshfb9n bTgAQ9Wqq5U0t1amrNNRWluiEZS9l88ORc2c6X4+RwY0Qj92k6VBfbyWdLllap3n5P+LZgCbVzq jjr0IbFvzspqzNsPgMngTAGY7gemJgOY03Op6UFz1mpAbaz4izw2X3TMvNqf3J0VVFD7BIhr6KZ 1QybbuFAxSvriBZhUrq7H3Sx7LubkxWmKmxsHyDyl1d0wp5iYaPc9h3wlyc4ESoZ8kY8LjFz8Fs sRctYCPHP2iYp/gtWooBYulJe2CXeHfGblFD3/KcMWy/bzMZCASOWdlTxg1jLukovlAhHTOOK7e ob2exqfoss0TkL+uian7eImgv+jGyTaIBNxCdah0Zkg70BvD4G3LBrC0sSGHurtW01Ejhk0VBqb TAbhsxA0vi94lBqQ52gU01Hmk94wIrPQRXH57/GxhDupy8vGQ4ltHXQ0+E0DelbtZu5FskVp X-Received: by 2002:a17:906:bb12:b0:c52:3e7:c1d3 with SMTP id a640c23a62f3a-c5203e7cac6mr572626566b.0.1796109136795; Mon, 30 Nov 2026 23:12:16 -0800 (PST) Received: from Nuel20.localdomain ([105.117.39.242]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c51beef91efsm593366066b.14.2026.11.30.23.12.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 23:12:16 -0800 (PST) From: Omokefe Emmanuel Onanaroghene To: tianyi@cloudflare.com, hangbin.liu@linux.dev Cc: willemb@google.com, kuba@kernel.org, netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, davem@davemloft.net, edumazet@kernel.org, pabeni@redhat.com, horms@kernel.org, shuah@kernel.org, ast@kernel.org, daniel@iogearbox.net, hawk@kernel.org, john.fastabend@gmail.com, sdf@fomichev.me, skhan@linuxfoundation.org, kernel-team@cloudflare.com, tianyi.gao@linux.dev, Omokefe Emmanuel Onanaroghene Subject: [PATCH net-next v8 0/2] selftests: net: veth: propagate check failures to exit status Date: Tue, 1 Dec 2026 08:12:04 +0100 Message-ID: <20261201071206.7311-1-emmaonana18@gmail.com> X-Mailer: git-send-email 2.43.0 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 Content-Transfer-Encoding: 8bit Four checks in tools/testing/selftests/net/veth.sh report failures without setting ret, allowing the script to exit 0 even when a check fails. Set ret=1 in chk_channels() and the three "bad setting" negative tests identified by Tianyi during review of v2. Patch 1 fixes the invalid TX channel test, which used nproc + 1 to determine an out-of-range value. However, nproc can be lower than num_possible_cpus() when CPU affinity or cpusets restrict a process, meaning the kernel may accept the requested queue count. This could cause false failures on a correctly functioning kernel once the propagation patch makes failures honest. Use the kernel-reported max_tx + 1 instead, ensuring the attempted value always exceeds the device's supported maximum. Spotted by Sashiko AI review of v2. --- v8: - Rebase onto current net-next (no content change); tags retained per Willem's request. - Add Hangbin's Reviewed-by on both patches (thanks!). v7: https://lore.kernel.org/all/20261124214025.11603-1-emmaonana18@gmail.com/ - Fix [1/2] subject numbering, lost in v6's send (reposting promptly to repair series threading; no content change). v6: https://lore.kernel.org/all/20261124211645.5751-1-emmaonana18@gmail.com/ - Squash the two propagation patches into one and add Tianyi's tags. v5: https://lore.kernel.org/all/20261121182217.4609-1-emmaonana18@gmail.com/ - Retarget to net-next and drop the Fixes tags - Move the invalid-tx fix first, so no commit in the series can report a false failure on a correct kernel. - Fix the subject prefix on the invalid-tx patch, lost in v4's send. v4: https://lore.kernel.org/all/20261119003003.40482-1-emmaonana18@gmail.com/ - Patch 2: use if/else instead of "&& { ...; } ||" chains, keep lines within 80 columns (thanks Tianyi for the review). - Add patch 3 deriving the invalid tx value from the kernel maximum. v3: https://lore.kernel.org/all/20261116084107.6675-1-emmaonana18@gmail.com/ - Add Tianyi Gao's Tested-by to patch 1 (thanks!). - Add patch 2 fixing the remaining three checks. v2: https://lore.kernel.org/all/20261115214702.50817-1-emmaonana18@gmail.com/ - Correct Fixes tag to 1ec2230fc721. v1: https://lore.kernel.org/all/20261115212117.48496-1-emmaonana18@gmail.com/ - Initial posting. Omokefe Emmanuel Onanaroghene (2): selftests: net: veth: derive invalid-tx test value from kernel max selftests: net: veth: propagate check failures to exit status tools/testing/selftests/net/veth.sh | 31 +++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) -- 2.43.0