From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.219.71 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795963378; b=prHVvBjfcco/mMgXGVgCDUun7vrBWzDXUD2bP0NHsE6zvc1F36WyEL/UJ5/qA5fI7J5n 5M53K//PXfmtjgy2Y0/CK1ISBE/0FfXl9GTUJUfBk2860nyr/MPvn6VHCOLy1YVhFH3WC fIpGkTgWSeW0BnMDszmaHrxHtEO9PaD+4xdgT3UR/iSVWi0UiN00kSj2P/ip5kRKoXj54 t9f/QpLQCES27Kq7IXyV0SnDQfE798gNjzOtjhH0wk6tqS6EJga83UslcRW/MhGwIzUX2 kg5Hgyssy2gyRl4XS67JwiYgmWDVYxGn0T2SkohpULBIHUxNqKqzUF21b75McC7HUfw== 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=NG83WpkjHujfuU9+UVAyZw9ellRLLHYSvwPP0FC5ebg1EN6MPezO59ojZStpr5H1eISW AIPv3EKBr2zUK9l2LWUNpBotNOjyPhALUrUbpYSD7Rds5y6Tn8PGqSMYZ7jNkhQfSvMDz qqVSSe0wJ2tIpqlJfAVUE6LcTRAKe9fnZdMOJWjl+ChAoqDKY0veJBy16XD17kMYlpxqy aeIUQIJFe0vyL89LzHykaOXZ+qFTEUwEWsizZMX+SzFrXG2wDMnY4fVZsUeWs9ojhaZk2 wATpFO3a8pCAebEZopq52uPvhjqPYK4ujhFSdayoSjedWcknwvxflhY80qSnitNUG1Q== 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.71 Received: from mail-qv1-f71.google.com (mail-qv1-f71.google.com [209.85.219.71]) (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 47185606A325 for ; Sun, 29 Nov 2026 14:42:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 47185606A325 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-f71.google.com with SMTP id 6a1803df08f44-92125ff2d08so102119406d6.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=WHJNbIi10tDtegr3wUJpOXxsEyB66wTlS/34P4z/YH3lGRBtKY8VhCDiC9pAhwIoOb pPY8LMqrs8iGgrMxPuDXRSNtMpcv4zgvPjC/+hVvITmJxTL8aV1s27qE1+nyeMmQjBZX ApmD2LCXdgsPOlNVYU/5h2W4VBpK3eZZFwNjoCSesyFpYSkSVtHFStYNvHt4v4SbzsT/ dk2eOkMqXb2x8vgebdIW/ev6AbIzeMvLI/EiOrdLtI+62ELoLYezUkyDlcfWQWR0kdG6 KvXps9bQpycfYc9oiuz9p1PPow3kmG9Y55G/wpV2qgS3MKHqgpQG4ON9Th89O2WZo8ig mhHw== X-Forwarded-Encrypted: i=1; AL+hErHeyQFUBJmVrZQtoD51pTiOUDfnPWCh+dhF+t1yIG9wjXvhbv1O1KG0BfdYWZ4uVEQjrkqTyqzkhEMSx48=@vger.kernel.org X-Gm-Message-State: APuU4Z8QqmYrn/wwt95buToR2BhVSWp4o06uORtNAjlTH8cUd+WDGysz EE/gypRb+rpUA7MAp+SjvAnqp4fJka+2z7hgJwrtV5jXKWNFCYe58Ajuefs6jWNwit49WhGW+Qr 5G9WOfdPlNQ== 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: linux-kernel@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