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=5Re1WuoNDqdO01EbSGXK3SGNcWOBhR6vOzfpGTpKalmiuP9q7/aOlXeIbDJvx3wIn7Nu 0zrWk20Brz/lw+lUgEVHzFdh8livVgY2mDGhh25x516gFA5DXGN4qBHZyHX+MU1qaj4kB fBpJzRHcE6WZmlndEcU2Xp6NUvjycD1IRA4feS3Kc7RDhmouthknMROHOpLlcB3HipUcB vu9MuHuUzINuWNmouJiN//HPh0DCJjRHR/gdOuM9ALw2N/JvANeKjcatB8FrMl6/ysBgY JOxQn2Nskdp4J1lFEgkkE7TZydEbc6Z0VSd1B1ke4O7F5GcEAL56CkdhlzVLcfhKk9g== 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=wMSr1dKmikyYpNj9N9ewjiBiiKHdJkowrRecnL/rd7D20OeC5KZ4BsCtpsVz1JTAGjFZ rfDaR/tscpDifKehgTCu8smoEzgCYPGg2aBTuAbMIXC5/9uKHKejB5L3dUrtDF+cO8BEb qLArLPsIlxMuJSiki68nEdTj1KOkZV4f1PdMAqPBgBkhg4/jYCdqweF60OewbY/Y+Nk4J vZzVEMIw9EDsFrIlXHWe97IM8q5/WhHRM/KzYQWNblrNRiGmkt7De8xNrY5nKn/L67Hz/ ZMcCeJjgq6r373G+mjhz0aYseghuC4uJc8DVlMOc3PYOicVJ5Awz4xobqeZ/kmxYV0w== 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 4D48B606A329 for ; Sun, 29 Nov 2026 14:42:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4D48B606A329 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-92125ff2d08so102119426d6.2 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=h4vTaiBI1DCUFSZdJOYARWYpDvFVcZ3h5ozr5OUhF0YZy9m5o2K2zhjioSuleOEXhd REqhKZeyDUVpPrim7Kw4rJQRR7Y65vHV1DQIq20/3es0VLvFlK+9okuB7VwD12mt27At o5wQbME2JZWcfHkRQvgHB6i2+tZAWdesWi4O/UyDSLIr92X3X9eVCsMT1uXuLDZwt2g3 qKgs17cgmowa2YPQARrUlcoRj5H68YEcrB478fU02Lf4FyAHSa8sLw5PvrDmv7HHD6IQ mVzyqOaEL8H36iyxf8tK0OK1MxMcaqOWYhbZXB40RizWa8DI2K3RjAo5RxNMxLhe2dDT aBYg== X-Forwarded-Encrypted: i=1; AL+hErGdK0aWeN0a94UsgCiJOEW6wqGI43hO1sZHZcFFKvWI9hopxomWL87U/4AGPDu5GEIiIQ7LjEk=@vger.kernel.org X-Gm-Message-State: APuU4Z/+7DT3pMALWo7cte49407AGPX6QgG3OAAkiK9IzqAgKfRz7sbr ZaWIQ7H57p0UFmHvn8IK69ixkU8zQY2a4zTj3cwDQ4Ko7c6OusnA8IxOCKOF9nkn8uQE1Y5OLjA AeRkHZOYS6Q== 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: netdev@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