All of lore.kernel.org
 help / color / mirror / Atom feed
From: willemb@google.com
To: Omokefe Emmanuel Onanaroghene <emmaonana18@gmail.com>,
	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 <emmaonana18@gmail.com>
Subject: Re: [PATCH net-next v7 0/2] selftests: net: veth: propagate check failures to exit status
Date: Sun, 29 Nov 2026 09:42:56 -0500	[thread overview]
Message-ID: <willemb.18c9c8b6e72e4@google.com> (raw)
In-Reply-To: <20261124214025.11603-1-emmaonana18@gmail.com>

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

  parent reply	other threads:[~2026-11-29 14:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-24 21:40 [PATCH net-next v7 0/2] selftests: net: veth: propagate check failures to exit status Omokefe Emmanuel Onanaroghene
2026-11-24 21:40 ` [PATCH net-next v7 1/2] selftests: net: veth: derive invalid-tx test value from kernel max Omokefe Emmanuel Onanaroghene
2026-11-24 21:40 ` [PATCH net-next v7 2/2] selftests: net: veth: propagate check failures to exit status Omokefe Emmanuel Onanaroghene
2026-11-25  0:41 ` [PATCH net-next v7 0/2] " Hangbin Liu
2026-11-29 14:42 ` willemb [this message]
2026-12-01  7:14   ` Omokefe Emmanuel Onanaroghene
2026-12-01  7:16   ` Omokefe Emmanuel Onanaroghene

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=willemb.18c9c8b6e72e4@google.com \
    --to=willemb@google.com \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=emmaonana18@gmail.com \
    --cc=hangbin.liu@linux.dev \
    --cc=hawk@kernel.org \
    --cc=horms@kernel.org \
    --cc=john.fastabend@gmail.com \
    --cc=kernel-team@cloudflare.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=sdf@fomichev.me \
    --cc=shuah@kernel.org \
    --cc=skhan@linuxfoundation.org \
    --cc=tianyi.gao@linux.dev \
    --cc=tianyi@cloudflare.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.