Linux RDMA and InfiniBand development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Tim Menninger" <tmenninger@everpuredata.com>
Cc: linux-rdma@vger.kernel.org
Subject: Re: [PATCH v2 2/3] selftests: fib_nexthops: Check the IPv6 multipath source address
Date: Fri, 04 Dec 2026 23:49:02 +0000	[thread overview]
Message-ID: <sashiko-outbox-250816@kernel.org> (raw)
In-Reply-To: <20261203234720.2428689-3-tmenninger@everpuredata.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] selftests/net: return ksft_skip drops skip status in
  ipv6_mpath_select()
--

commit ffd84aacf0d609683c23be32a4ba6c1ef88a668e
Author: Tim Menninger <tmenninger@everpuredata.com>

selftests: fib_nexthops: Check the IPv6 multipath source address

This commit extends ipv6_mpath_select() to verify that the preferred
source address reported for a destination hashed to each multipath
nexthop belongs to that nexthop's device.

> diff --git a/tools/testing/selftests/net/fib_nexthops.sh b/tools/testing/selftests/net/fib_nexthops.sh
> index adbec51917eb8..cdc8d53d87acf 100755
> --- a/tools/testing/selftests/net/fib_nexthops.sh
> +++ b/tools/testing/selftests/net/fib_nexthops.sh

[ ... ]

> @@ -867,6 +877,31 @@ ipv6_mpath_select()
>  	done
>  	log_test $rc 0 "Use valid neighbor during multipath selection"
>  
> +	# The source address must belong to the selected nexthop's device,
> +	# not the device of the group's first nexthop.
> +	local -A srcs
> +	srcs=([veth1]=2001:db8:91::1 [veth3]=2001:db8:92::1)
> +	rc=0
> +	for dev in veth1 veth3; do
> +		match=0
> +		for h in {1..65535}; do
> +			addr=$(printf "2001:db8:101::%x" $h)
> +			if [ "$(get_route_dev "$addr")" = "$dev" ]; then
> +				match=1
> +				break
> +			fi
> +		done
> +		if (( match == 0 )); then
> +			echo "SKIP: Did not find a route using device $dev"
> +			return $ksft_skip
> +		fi

[Severity: Low]
Does returning $ksft_skip directly here drop the skip status?

The main loop runs each test function with "setup; $t; cleanup" and
discards its return value; only log_test() increments nskip and updates
ret.  Returning early leaves the skip uncounted and aborts
ipv6_mpath_select() before the final subtest runs.

Setting rc=$ksft_skip and breaking out of the loop so execution reaches
log_test() would record the skip and still run the remaining subtest.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261203234720.2428689-1-tmenninger@everpuredata.com?part=2

  reply	other threads:[~2026-12-04 23:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03 23:47 [PATCH v2 0/3] Spread rdma_cm connections across ECMP paths Tim Menninger
2026-12-03 23:47 ` [PATCH v2 1/3] ipv6: Use the selected nexthop for source address selection Tim Menninger
2026-12-04 23:49   ` sashiko-bot
2026-12-03 23:47 ` [PATCH v2 2/3] selftests: fib_nexthops: Check the IPv6 multipath source address Tim Menninger
2026-12-04 23:49   ` sashiko-bot [this message]
2026-12-03 23:47 ` [PATCH v2 3/3] RDMA/core: Use the CM source port in IP route lookups Tim Menninger
2026-12-04 23:49 ` [PATCH v2 0/3] Spread rdma_cm connections across ECMP paths sashiko-bot

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=sashiko-outbox-250816@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=tmenninger@everpuredata.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox