From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 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== 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== 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 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) 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 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 08A0C1F0092B; Sat, 5 Dec 2026 00:37:29 +0000 (UTC) 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== Subject: Re: [PATCH v2 2/3] selftests: fib_nexthops: Check the IPv6 multipath source address From: netdev-bot+sashiko@kernel.org To: tmenninger@everpuredata.com 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 Date: Sat, 05 Dec 2026 00:37:29 +0000 Message-ID: <179643104959.3146.13111926631613838779@kernel.org> In-Reply-To: <20261203234720.2428689-3-tmenninger@everpuredata.com> References: <20261203234720.2428689-3-tmenninger@everpuredata.com> X-sashiko-severity: Low Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit 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 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