Article View: linux.kernel.netdev
Article #27191Re: [PATCH v2 2/3] selftests: fib_nexthops: Check the IPv6 multipath source address
From: netdev-bot+sashiko
Date: Sat, 05 Dec 2026 00:37
Date: Sat, 05 Dec 2026 00:37
81 lines
11072 bytes
11072 bytes
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.
Low priority / nit picks for your consideration:
- [Low] In ipv6_mpath_select()
(tools/testing/selftests/net/fib_nexthops.sh), the new "Source address…
--
selftests: fib_nexthops: Check the IPv6 multipath source address
This commit extends ipv6_mpath_select() in fib_nexthops.sh. For a
destination hashed to each member of a multipath nexthop group, the test
now checks that the reported source address belongs to the device of the
selected nexthop.
> 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
[ ... ]
> + if ! check_output "$(get_route_prefsrc "$addr")" "${srcs[$dev]}"; then
> + rc=1
> + break
> + fi
> + done
> + log_test $rc 0 "Source address of selected multipath nexthop"
> +
> run_cmd "$IP neigh add 2001:db8:91::2 dev veth1 nud incomplete"
> run_cmd "$IP neigh add 2001:db8:92::2 dev veth3 nud incomplete"
> run_cmd "$IP route get 2001:db8:101::1"
[Severity: Low]
When the new prefsrc check fails, does the failure also show up under the
"Multipath selection with no valid neighbor" test?
The sub-test that follows in ipv6_mpath_select() never resets or
recomputes rc. It throws away the exit status of its run_cmd calls and
then reports whatever rc already holds:
run_cmd "$IP route get 2001:db8:101::1"
# if we did not crash, success
log_test $rc 0 "Multipath selection with no valid neighbor"
So if check_output() fails for either veth1 or veth3, rc=1 is still set
when this log_test runs. That gives a second FAIL line and another nfail
increment, and the failure is reported against the crash-only test.
The commit message says the new check is expected to fail on kernels
without "ipv6: Use the selected nexthop for source address selection".
That makes this case likely, for example when only the selftest is
backported.
This stale rc reuse existed before this patch, since the first sub-test's
rc used to carry into the last one. This patch changes which result
carries over, and that result can now be an expected failure.
Would it make sense to reset rc=0 before the "no valid neighbor" sub-test,
or to set rc from the exit status of the run_cmd "$IP route get
2001:db8:101::1" call?
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261203234720.2428689-1-tmenninger%40everpuredata.com
Technical Details
Message-ID:
<179643104959.3146.13111926631613838779@kernel.org>Path:
mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-377768-linux-kernel-netdev=dewy.ruReferences:
<20261203234720.2428689-3-tmenninger@everpuredata.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-377768-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH v2 2/3] selftests: fib_nexthops: Check the IPv6 multipath source address Date: Sat, 05 Dec 2026 00:37:29 +0000 Organization: Usenet Network Message-ID: <179643104959.3146.13111926631613838779@kernel.org> References: <20261203234720.2428689-3-tmenninger@everpuredata.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2917128"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:yMLBHipZBJKoAheRzG9+rYp4aJ4= sha256:KYOFQqOGBY9MSCTWXsllG+3y+cdX+iLcP+1fVjYzYgQ= sha1:RroDKCnbP7LIZ8kZ+ZPCLUpZY2g= sha256:XCQfuR/B/okFCjbSaT7+YSHM4miCasTeJ4Bq4bCWOw0= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id D09A6117D35; Sat, 5 Dec 2026 03:37:52 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.542 X-Spam-Status: No, score=-3.542 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.142, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gxhtiYdd7qoG; Sat, 5 Dec 2026 03:37:49 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-377768-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 77A65117D13; Sat, 5 Dec 2026 03:37:40 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id C25EC39F0B; Sat, 5 Dec 2026 00:37:34 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796431052; b=C2et7Xlhp3U3HTq0TwjCxquu5NwJtXZ3HuN9jaL/EXqhik+yst6zJenOW2hkyU+bQfE9 nNwdqFtshKNVZLumcWSC1WrjDDNQF67nEAY1ZSHXNHQXtD2jIxdFEnchxcxeTHKZr8zcd ZsFySY4G0kbjRQp9GzwoxP4t1TG3bRg1w51B+BiTR8dM+d2tEGiga8Z6aYJG7zLSJJKEI 3a7b3HHIkQBLmlczDMOwYp6OHanIrILwSjmr5V6huCcrBOjJEcZl0KcDw4tW+V6DioZgL br2uwrBYXOnIr31DQL2rtjWnCAx9kQyg7iNejB8MCf+x6sDURK4tP7ja6YlB26wvjVA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796431052; h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc: Date:Message-ID:In-Reply-To:References:X-sashiko-severity: Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version; bh=XH738RGoK1kajsCX1Y08MeiJOGulbcCHMpc3AnUfs6A=; b=ndNg2XohE4R5DV5e+65ag8FBOluHdSWiP2P06IS02+DXmODnL1mzDrHdW9Js4CgZw6Lk y/yOnUkiTo1OvsYWyafxiw3JyZYlhyNd9Go/YH6UIQPDK0WMXBUXbXGfqswFi8PoPE/cv v8d+y4hmKONvgvA8/cP4GdvsReKh03EjVqaW99G12uCBQE5J1culIJuasR7OQPsPeRpqX WieSSuiygIMefycMlMgui0Jtmxf6v/afCdZm/d6ZmCal+etTjg7hAiMB14d+hHP46hEOU hFYchk0d6Glizwdaaw7oWgKHYpFvxUC5wbbHgmpOV6q3RdvyLTeFy/Zs17tQ+jm5aHg== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=idNOqXtA; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 146CD606A33D; Sat, 5 Dec 2026 00:37:32 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=idNOqXtA X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796431051; b=Wiq2/01/MYLyutYX4XhjTNxKrFmL6JA9lAy+zgVcKyddCJ82m0H+QX3Y9xuofiJokYMT QquBCFuvr9B9phiJYQU+zul0f4E8lKFO4WTWw/gBxhPq4ub8BL6bKwbuFK4Qopo+sfJAz 6C6ehjDh7YIyXJqXaxaQ/Nbfh1AvJgYRBlFk1YNmf/dxNSlz16s7EPESDFFdvTXf7Zg1g v+tBz7b6HQ8SkKOxmSYzI6jh3TBovNT0IvqnGsMsW7XbzQ5PJ+pWKHehoPdGcLDFXboLx iUSCUmQmt9GK58b9tzIjcP/ciXBrZOtl/056ydMjPQdfi0FQlrihwo1iXJhLRwuqZuQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796431051; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=XH738RGoK1kajsCX1Y08MeiJOGulbcCHMpc3AnUfs6A=; b=w9UodaIc3PRrDPk0Wz6KkneTXlyfAVEL4BSkpwPNIQ8G8mBdGNfgin13Aw4zko7Va73l wAr2kChQK2GskB5Bogn8fpCfP7q7SF/SfFPTc74LjnBEepG/G4YPW48G4qjv6IUUwCUSG 9OtZaNZesA3ecyK+RKhIZR1Y3OElO5R3D8b/g0e58reRhvR5nVWpvewvrPDjeHpyVQlJL eMJk9/ugpWpZA/7ZHOUzmbbWD567awnRL9wCVw7QINvLc1AcPSA7fmgSH3w4PKJxwQ3tB GYezmUXV4iIjKoMiOPWKmK5b4hWyN8ixbthuyxp2xhyezvz1k39/YdlwxQ5lvi0iLaQ== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=idNOqXtA; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 35F97606A686; Sat, 5 Dec 2026 00:37:31 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 08A0C1F0092B; Sat, 5 Dec 2026 00:37:29 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796431051; bh=XH738RGoK1kajsCX1Y08MeiJOGulbcCHMpc3AnUfs6A=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=idNOqXtAE8LzHHsfyrE7pK7yAdj12m3rmwE24aojsLMYb7zsjM4Y/y3LOzfDmPkei ZpH6IqWrABadL/cwg19ufYzXS5uSFQ/jE82Xx3TdftT/Uij/OMrkW5J7K9mjRvHSji Hm4WOzWP/NZ5yzYksrzC64CASwQpgeVYJlcKBIZMK4/PskloJuiLqBBjS95RMWZdca 4S4WiSL/5/Wa4rNHtQSVvbB+AoH/z4FrMie29Gc33874pVXpjlRk209C5n0X4VtWmS e862SNzsMsEsgLggPlIKJuKYUV5zH7ON9XU339PEYizCs32uZ9Z09evk/wBoGawYaB l/znuaRHGg6YQ== X-Cc: leon@kernel.org, jgg@ziepe.ca, bharat@chelsio.com, dsahern@kernel.org, idosch@nvidia.com, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, shuah@kernel.org, slingappa@everpuredata.com, rpatil@everpuredata.com, linux-rdma@vger.kernel.org, netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org X-In-Reply-To: <20261203234720.2428689-3-tmenninger@everpuredata.com> X-sashiko-severity: Low X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list