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=MVasKvSepD6kbt/dt1Z8zh+wXIeKRBJ3OOWJPU7aA4x2RVCNURQForxBz75o3khED9Lb ZBMMEAApsIhXJx/pwfPfs2E4NrE5Yf/4cW9UygNfIHUtI7Pb7AwecTYmDbP/4h8mX86vr NRgpDxIrbJrhcEGYUXCk1j5ZCOHbzztBx0FIxcK8FxWoFSdCDKymPh+8ldiNs1vVBzW9d tjsFGTezSCZqFjY8/SYkjL0+v1PAfzFn2vOhH03LKeQcK3+Rwp9dTIobtYymN2tLc3o0R GnTDeVQ6EUMJhw0/qPdzgSmuzMTM9tSIksgnwLYk3W1lhFFdCMj9UC/V1+c7INhQxUA== 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=2oquk+jo4Z84ZgiVBNUsceHQZbpAOwiXLUk7yPygqkaohb94OxOkyHp/RCkVRRGnSLVW o23vBqLXWDtDJelL2B8aNOJg6IZO2/Lu7BuxhVMYBUt44ei+A8Pa/sTl3JfhT7Z2+CDh0 828158R9D/lGqe8Bmp8RKpENjURZIYFwjeS6rEMO6ClD7/s269xElX7bu53xxR7lCO8cM OoSQo4IdXUPv0GlnjyXLWqqFic81hfIOzEFbhggTmqVQ8Iu8SxRm+SbiccmcoO5n4MyIb 3j1hUS6FY9SjJFOK/UgGToZ7Rt3OEkpxBPw+gX9iskodjAtaiv7s5MP9naS6QJdVkpA== 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 ADB50606A697 for ; Tue, 1 Dec 2026 07:12:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org ADB50606A697 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-6bb20f5e97aso958913a12.1 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=s4fLNueGe8/VA+bS92xBhTo4xFWD1ONRKKQdbxN/eI8/HClGXd5+gOCML0qZJcAuyZ ikX+VD2eDO/1UpHJAalp1Y5rOOu8oFJfVT0cgR291mNkTb4yHPQ5aMDSdsBehL28vcCI xFAYzOlO5FcMv0g4eLNED/0QGxR/fQAbFgbAc/ifJ112Uxy5XoYvfD2eLIXqgeRy+/+u lchZcTZlNXa+x+WzNIh+rxRmEi7QLWjLIaOzO6hDOjrOluqXTqQgpR3hyVlEwU+Kj7KJ nixnUiB9QouJds5aRObGfamJP5KH4l3UmmCx8z4muGuqx+YL63nDCDGU20HisNr/rO18 ggwQ== X-Forwarded-Encrypted: i=1; AL+hErElSSAqYj7S+RM1XPeWwkYM7I72NunDJ6x4UYhBR1JgI1sS47ZwNBuemsKHR1Freqp2Ca3CDW4c0mPXeSM=@vger.kernel.org X-Gm-Message-State: APuU4Z/iwM1fpmAZ3n0pyhKYu68zwUAQ5V2pJEMqQ+h0XbmpJ6ERgRbD vLS+aW9WwD3f8DuzGMuiutdiGQDoZXjdXqPvlRg88/kZ9qJbuBmwj5HF X-Gm-Gg: AZFdTZdljKjQ69NTkJj1FpwjLZvgxPMpUJWf2HklqFP/li97eW8/iq5w3zZiMtEyOu2 SP3OoOkOM6AJ31p+Zs24v6E/SnEA5NcrH9XjOHz23e98IW396/I6s3KLjwFRhGk/NPMIsfocjtg I5JUvfjVK0hKQVzHb9/rxLZeerkArMocXWLv6tRK9YjePGxtQASC7WR3WeCn7aQIBaNBSMCgfqu /3jrfB8RJ2U/HIyKMUFKTBGhIxGZsd+NmHYF9Rk4sVgXf6doKDmK/lxo8iYO6Lnpd+9yycX/OJb 8GN/nCKmFkSKRm+klBBHvHtP2oVx1sTnb801DJK3z3OJaOzeybCuJzqn320Hgk0966ze1k6HcbA M4LWuf4SvrKhx2bWsw01ajCzu2Icyx6v/kA8zS7HqO+FAe8CLCgGY3vhtR1alEKOqvneUxY//Lr 5zDylnRmhe1FNFroHiIn+d0YMNxsh84GI4YGFi8RU48ZhWTzi73hikdvP6sle40CnekLcBtTVwW sVnUfZ1HrxLXmP6LiBsGPCKV9hL8Hf2Khf1HbDOmbkCSKJnxImpDYLrTD7u4R2dNyh512UXE1VB IhJo+Q2SoLrYqJbts+QCsqZ2RDJX6/45tHV1ocZFIwjEgdxyybNwSDwO+Ov+RIUi0Kj8S1Du 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: linux-kernel@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