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=1796279395; b=nE/Y/w/4pxb3Qp+C/w58LDx59vWnziCYscrunbAU0nkGtvGRP+XgU4S87D8hvKOBklyX vbveXgrpR809PgYZUVAU7ZmfIRn1BsyibpEC8e2YjX4ZFWtv4zKU44U17kRkpwVhKOwGH E8zF1lCi7/UIpfOPQ+KlUFScXcbjjYj8BSWpxrFdGbNtjlBAlHIDdbLb1qqJ1XQwgN0Uc gArq7bPK49ZC6L3c/7qY23hFF3nPUTsjyDAWf9xuNhkqs3qCUxT3ZIMOX1NK9RwuUSW2B 4zo9NUGK4BK9NB1hax2AHOqyToCO+IF8y6AssligAsppS5GKIA5NLz/l1swmqslxFTQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796279395; 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=nPmQwSoOx0gLsiw7YEhcsf9iIYAGmWLIJHzYXpGWnfo=; b=Ykj7GyELEkb/5KUTumk+r9N6MT8QtMSIXBRTuzUo79Wzba+2Bt2Cwev3i0g8oeSFM2ya K5Bkp1NkTQRnVwihGx2OOK2XZcqfBxN164fYArP3wS+LRjHLxLMWMQ6jKytvym1jfVrFC x6xa/GGbjNh7jC+cSExcO92lKb9pmSpzQrt0U4bEJKfA9Rf7YHtLeqMSd4fHJcJOidrY3 dvwKHag2tuinYACQ8MCPx6f5CXJWxGizE/nHZqmaWMDipdZY1JzbDOOQmlY4i2f9oAv7y jANzsueAkcZZuU3qes6xRmZAUNAVohLqCJHagmMokDRkMbNsYXp4yYpODqFL2/m15oQ== 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=HRNXjcl5; 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 801EA606A697; Thu, 3 Dec 2026 06:29:55 +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=HRNXjcl5 Received: by smtp.kernel.org (Postfix) with ESMTPSA id AA47E1F000C1; Thu, 3 Dec 2026 06:29:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796279395; bh=nPmQwSoOx0gLsiw7YEhcsf9iIYAGmWLIJHzYXpGWnfo=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=HRNXjcl53fTM8zHpt7sg482kaX2nMmp3kx9U32oAwvxd3H+N1bGjbxS+615p7Wro8 ZLoEnow6qeux/4GK6ZI1KOy5CfOyzdxuL6qrXfUO3DpbnswC4H8b4ulzMKIh43SP52 WeL42QYC7jPUavkEC0+QGVMQ5O2umwB9GLnftgfIVa0ZK9/8cL8zJsExAe0ICEnhnu vbu7lML6KhiIEUgimHrCKzLNIQhmB4Zy6aZkimBoy+Woej34eXfQOcDOpb9DqV0dTQ V/GqTpSgNiut1r8CeD9ljyAMLJ0v5OrgP6fAGrZso/WDKvv619eqURrl7xvP2+4IRl ZeNVxS0XKqVlw== Subject: Re: [PATCH net v2 3/3] selftests: bonding: add recovery updelay test for broadcast mode From: netdev-bot+sashiko@kernel.org To: hangbin.liu@linux.dev Cc: jv@jvosburgh.net, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, tonghao@bamaicloud.com, razor@blackwall.org, shuah@kernel.org, jiangjiehua1@huawei.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Date: Thu, 03 Dec 2026 06:29:54 +0000 Message-ID: <179627939427.3146.1212423331497238818@kernel.org> In-Reply-To: <20261201-bond_broadcast_updelay-v2-3-969e1844f2c4@kylinos.cn> References: <20261201-bond_broadcast_updelay-v2-3-969e1844f2c4@kylinos.cn> 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] The new mode-3 (broadcast) cases in recovery-updelay.sh cannot detect a regression of the fix in commit "bonding: update slave array… - [Low] The commit author identity 'Hangbin Liu ' has no matching Signed-off-by. -- selftests: bonding: add recovery updelay test for broadcast mode This commit adds broadcast mode (mode 3) to the bonding recovery updelay selftest. It merges the mode 1 and mode 2 scripts into a single recovery-updelay.sh, which loops over modes 1, 2 and 3 and a set of updelay values. > Signed-off-by: Hangbin Liu [Severity: Low] The Author: address (hangbin.liu@linux.dev) doesn't match the only Signed-off-by: address (liuhangbin@kylinos.cn). checkpatch reports this as FROM_SIGN_OFF_MISMATCH. The two earlier patches in the series have the same mismatch: "Revert "bonding: do not set usable_slaves for broadcast mode"" and "bonding: update slave array on link change for broadcast mode". Could the series be resent with a matching From:, or with an added Signed-off-by: for the author address? > diff --git a/tools/testing/selftests/drivers/net/bonding/mode-1-recovery-updelay.sh b/tools/testing/selftests/drivers/net/bonding/recovery-updelay.sh > similarity index 72% > rename from tools/testing/selftests/drivers/net/bonding/mode-1-recovery-updelay.sh > rename to tools/testing/selftests/drivers/net/bonding/recovery-updelay.sh > index 9d26ab4cad0b3..05edf9915cc0a 100755 > --- a/tools/testing/selftests/drivers/net/bonding/mode-1-recovery-updelay.sh > +++ b/tools/testing/selftests/drivers/net/bonding/recovery-updelay.sh > @@ -34,12 +34,11 @@ cleanup() > trap cleanup 0 1 2 > > lag_setup_network [ ... ] > + > +for mode in 1 2 3; do > + for delay in 0 200 500 1000 2000 5000 10000; do > + test_bond_recovery mode "${mode}" miimon 100 updelay "${delay}" > + done > +done [Severity: Low] Would the new mode 3 cases catch a regression of the follow-up fix "bonding: update slave array on link change for broadcast mode"? test_bond_recovery() in lag_lib.sh only checks ping before and after the flap: tools/testing/selftests/drivers/net/bonding/lag_lib.sh:test_bond_recovery() { ... ip netns exec ${SWITCH} ip link set eth0 down sleep 2 ip netns exec ${SWITCH} ip link set eth0 up ip netns exec ${SWITCH} ip link set eth1 down # re-verify connectivity slowwait 2 ip netns exec ${CLIENT} ping ${SWITCHIP} -c 2 -W 0.1 &> /dev/null ... } Without the follow-up commit, only bond_enslave() and __bond_release_one() rebuild the broadcast usable_slaves array. When updelay is non-zero, bond_enslave() puts a slave whose carrier is up into BOND_LINK_BACK. bond_update_slave_arr() skips slaves that fail bond_slave_can_tx(), so the array is built empty. For broadcast mode, bond_open(), bond_miimon_link_change() and the NETDEV_CHANGE handler do not rebuild the array. So bond_miimon_inspect() always takes this branch: drivers/net/bonding/bond_main.c:bond_miimon_inspect() { ... if (usable_slaves && usable_slaves->count == 0) ignore_updelay = true; ... } In that state, updelay is skipped even while a peer slave is still forwarding. The recovery step still succeeds at once, so every mode 3 case passes. So if someone removed the case the follow-up adds to bond_miimon_link_change(): case BOND_MODE_XOR: case BOND_MODE_BROADCAST: bond_update_slave_arr(bond, NULL); none of these cases would fail. The only state they seem to catch is a kernel without the revert, where usable_slaves is never published for broadcast. Separately, the updelay 0, 200, 500, 1000 and probably 2000 cases finish inside the roughly 2.3 second slowwait/ping window even when updelay is honoured. Only the 5000 and 10000 cases exercise the "ignore updelay when nothing is up" logic. Could the test also check that updelay still applies while another slave is up, for example by reading the slave link state or measuring timing? That would cover both directions described in the series. -- Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261201-bond_broadcast_updelay-v2-0-969e1844f2c4%40kylinos.cn