From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.219.69 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795963378; b=dO+ar06S6ov4EChHCthlasxTY+CPPy+PB0MgnVVnR2Fxy36eNTDu4AY8XCWqpLwlY4Ni jvGVNtH1DK1Fn+EqHNm9dTbdIPADBUvK3ZkEJTx0bwkrmEIsCjzpY8YmNsokvlolnwzNf s4NTWxFp1XZz9l/uhZ9pLZyg+gITMNvz2VAY3fj8Gk7KQUrS+5n7we7maHAZH6VKPDR5M am/Hlv5t6jRRglBA2jKqsJnizloij2dPuSDcIXxPZ47+1PYkoU6ZtxDqDkaoxmcmOyn6i XuufInvVR4OkLTfh6kGcqE/cEfyZySIW/f+FBrnXbW19zvJyLofXFHq4fnw93AamkGA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795963378; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Received:Date:In-Reply-To: Mime-Version:References:Message-ID:Subject:From:To:Cc:Content-Type; bh=n9cznenDBjNMmqLcPw2270BvimHH6kMy/QStNpz2m28=; b=3sgcLzL/TDHGnWDsRcqrNlrflaLX/4UOfObyNFjwLyDr515KzLPsHeb/YvEmiPSYAMNQ wjbndJNSFANg9+OBZR10HhtErpvrLRDZ9tIc+s4U+ufTbYi4sGoG0Mvco618cB07E2i2g /9bJC1i+9/0toIAWPY+E9kcxkLKTTKlJ4fE+6SprSfROEneYuiXutB2XftNwoN0aqb9i6 CyrAJjLc3oX6qxgppbOzr/ydEfTX/1J5FMychG3FG17N6p5T4RqrYEifUTmJl/TW+YHp2 SPMuqw7M5GQLRpYeC9Wl58wKYslyb1ktQYqdxiaHDxKn6O5Wkk8nYyLqB07DA6iu1Ig== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=google.com; spf=pass smtp.mailfrom=flex--willemb.bounces.google.com; dkim=pass header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=KJDr8wLe; arc=none smtp.remote-ip=209.85.219.69 Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) (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 4D546606A32D for ; Sun, 29 Nov 2026 14:42:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4D546606A32D Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--willemb.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=KJDr8wLe Received: by mail-qv1-f69.google.com with SMTP id 6a1803df08f44-9213659143bso116642486d6.0 for ; Sun, 29 Nov 2026 06:42:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1795963377; x=1796568177; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=n9cznenDBjNMmqLcPw2270BvimHH6kMy/QStNpz2m28=; b=KJDr8wLeJET6V/oMw9GoSzVeQHKW8RR1WNFPU6568DMViG7yBpWtx8H1whaTHHqTN/ gugvy17NwovrDLrCZvxXfjNbD7DeSED/MkDPBlCd8lnZZWFqG31HIQsbgbcq1OuB3I67 2moaj/tNS/lJPPK71rSj8+RLVB2ZYnkqb1ATMsPtFb/sNfFm8OTPwSWQAdK7/leuy8xb o69U4HUYJ68qjzUanL9g3kyi6cVM96gMKeSTcUYzl+FHvwmCj7T/qUffa6x/LNLcEzlD ErBsq3FhA64+ybuHcCy77Jz3V5u8d6gVq4/4Mbn1Vi8baytVbGu/kY1vYylJZS7q/ryM XUVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795963377; x=1796568177; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=n9cznenDBjNMmqLcPw2270BvimHH6kMy/QStNpz2m28=; b=b3z432V7ZPGtkGOz1VL0lUw/xujfcknhRCfCCEwk0m+ZSX1qZqCWJGqBoreyU+IOcz XbAyLQL8lL+TO9S/FKgIrUUljbe9I3Kylc3mpaDAZB4iEu3aYSVHqX2gVGRaNLcnffhz a4MWkE92NdCcOmvL950ZkqAMnvWHTT+HQPfzumooKwak6qi38pO3TcakLBMGHHHUjtE9 IllGA+iDe87xnTazGruH5bJ8+oR/OFyWrv6jOl3HDQT6Uz294Q3qPcaLZ9mbYfBDX5KA ZiuGOVSdKhWjbYnDTlQCR7iv+6aV+ToiIhchC47mdSWIFLV8NTrLGhrt8hxwMPRcqKsp aZIQ== X-Forwarded-Encrypted: i=1; AL+hErH+bN8OtfX/+YMdAdzB71sbwReV22tDATSYnJkc132phqYIGuAsrQkiaYBTY5Vq56RAXEw=@vger.kernel.org X-Gm-Message-State: APuU4Z+lngQx1M5k4TMwC09cRDggPGulTzG1ghy8XPKZOzjKS429y3Kr Fk+FtgbUfka62kzWUDRGObmKioULHiABw8SwRRQSgw7YHt38HmIJYJMui1aL9XOs4jRNrXJFUzd qezKaFkDrug== X-Received: from qvax19.prod.google.com ([2002:a05:6214:4153:b0:921:1c72:827b]) (user=willemb job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6214:4601:b0:921:5577:a429 with SMTP id 6a1803df08f44-9215577a4d9mr422780006d6.6.1795963377035; Sun, 29 Nov 2026 06:42:57 -0800 (PST) Date: Sun, 29 Nov 2026 09:42:56 -0500 In-Reply-To: <20261124214025.11603-1-emmaonana18@gmail.com> X-Mailing-List: bpf@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 References: <20261124214025.11603-1-emmaonana18@gmail.com> Message-ID: Subject: Re: [PATCH net-next v7 0/2] selftests: net: veth: propagate check failures to exit status From: willemb@google.com To: Omokefe Emmanuel Onanaroghene , tianyi@cloudflare.com, hangbin.liu@linux.dev Cc: 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 Content-Type: text/plain; charset="UTF-8"; format=flowed; delsp=yes Omokefe Emmanuel Onanaroghene wrote: > 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. > --- > v7: > - Fix [1/2] subject numbering, lost in v6's send > 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 This no longer applies cleanly to current net-next due to recent changes in tools/testing/selftests/net/veth.sh; please rebase and resend while retaining the existing Reviewed-by and Tested-by tags. -- pw-bot: cr