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=1796268902; b=FsLEttTCVF7JLiy12wc0+5zzOLOTpaN9vnFRC1xyiIBLLsXQkRyuPSJVcrPywPbPvAv0 yNrE98QKD9Nyi7ChWMO/IPG0Luuz3GHxSURn5fCy5sTbGMn85tnPuMIQJTTWR2kxFlfs9 bIMSv1EwFo1/atNS0kkLUoA70GZTBccnQEf7LY4l+ALnY0SwArA4nF8qQ+XEgEcWmCawe owCWsZi7WAYKJV9EkU6oMzOp680Ogg3BATHh/Yt3zZM93EJaF52mbZfh/tgUn1wRJ841G jXyiBEjJglcUi7wLcflkUmVH1VtFzG8EsEO1yMSen7oGzMzT1pJJT/cuN4s74KdYRZQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796268902; 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=asIarur4VWnPRCepF9pyQCNkY+x88S+EEvPeRPoyiyw=; b=hu8c6yM+78v/bjjxsCM23XFP/JYvS75OmENrZ1Qn0Hq/Mg8HKjxvvfpMosA0vy6QA+i2 qz8FhndjDG+iUMOSqcw7QsgPyUkaAVoe8q5SHrdq3KBw9nsBIwUUNdzCJhvQoWikFlEuU FmjLTrgyXcdDTThsEbaSTAYsJ0C5WOhdK9plggbtPl/vBdXRnj1WtAi3K4kxAA18hNbXw K1X7XkMyPpH1vM14gMyF+ErqQFvjjBnNkSwUP97GSzcbzm//WkIUzBFgRY5WdWiORqRGz FWrfR5qAiXzqQ10XzZZsMvtsIfJP21QcyIhRevgv3InCzkmIV3kGEiJv6z4MvlUYYnw== 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=Q3lZcVWM; 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 906FE606A684; Thu, 3 Dec 2026 03:35:02 +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=Q3lZcVWM Received: by smtp.kernel.org (Postfix) with ESMTPSA id 88E7D1F00899; Thu, 3 Dec 2026 03:35:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796268902; bh=asIarur4VWnPRCepF9pyQCNkY+x88S+EEvPeRPoyiyw=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=Q3lZcVWMDst/fPn21ZNt6IG5fTUr+JClzw4OqqHOFTWrve5mSbq9BYtTgXBoAkv5E nVT+Gq92o+QYZBVtwrCQsZZV4wmGWh1b/7MFyhlJL+3aaCH4Ib/D5NCys3B2oyGfro XwWe9l4BKu7UZ6o4pH/k7tigHHQBcPH8Y8M+fTKWAPkQQtKbKVeOT+Mjh1b82j01If cyQRwDp8IyCCLhskUUHnUAXhH4OW3eFwaPEK7y9apy6qFOUqNo19impJc1fNMHthcW R8aEO584/f44CLcC7+CFXvXKV8Zmr1C8ztI3shMCT/2XB7v/FmWzp5hVaPv6iIZicL 1oFeP88Xas9WQ== Subject: Re: [PATCH net-next 2/2] selftests: bonding: test that the ARP monitor keeps UP slaves when it starts From: netdev-bot+sashiko@kernel.org To: ramses@well-founded.dev Cc: jv@jvosburgh.net, andrew+netdev@lunn.ch, davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, jbohac@suse.cz, edumazet@kernel.org, willemb@google.com, horms@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, razor@blackwall.org, hangbin.liu@linux.dev, shuah@kernel.org Date: Thu, 03 Dec 2026 03:35:01 +0000 Message-ID: <179626890111.3146.588026340804732751@kernel.org> In-Reply-To: <20261201-bonding-arp-reseed-v1-2-984d4a3991cb@well-founded.dev> References: <20261201-bonding-arp-reseed-v1-2-984d4a3991cb@well-founded.dev> 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 comment in arp_monitor_start_on_interval_set()… -- selftests: bonding: test that the ARP monitor keeps UP slaves when it starts This adds a selftest for two ways the ARP monitor can start after the slaves are enslaved. In the first, the bond is brought up after slaves were enslaved while it was down. In the second, arp_interval is set on a running bond that uses miimon. In both cases the test checks that the primary stays active and that no slave records a link failure. > diff --git a/tools/testing/selftests/drivers/net/bonding/bond_arp_monitor_start.sh b/tools/testing/selftests/drivers/net/bonding/bond_arp_monitor_start.sh > new file mode 100755 > index 0000000000000..a718292172244 > --- /dev/null > +++ b/tools/testing/selftests/drivers/net/bonding/bond_arp_monitor_start.sh [ ... ] > +arp_monitor_start_on_interval_set() > +{ > + RET=0 > + > + bond_create miimon 100 > + ip -n "$h_ns" link set bond0 up > + bond_enslave > + slowwait 5 active_slave_is eth0 > + check_err $? "eth0 did not become the active slave with miimon" > + sleep "$ENSLAVE_WAIT" > + # arp_validate cannot be set while miimon is in use. bond_changelink() > + # sets arp_interval first, which turns miimon off. [Severity: Low] This isn't a bug, but does this comment match what bond_changelink() does? In drivers/net/bonding/bond_netlink.c, the miimon that the arp_validate check uses is local to the request. It starts at 0, and it is only assigned when the same netlink message carries IFLA_BOND_MIIMON: bond_changelink() { int miimon = 0; ... if (data[IFLA_BOND_MIIMON]) { miimon = nla_get_u32(data[IFLA_BOND_MIIMON]); ... if (arp_validate && miimon) { NL_SET_ERR_MSG_ATTR(extack, data[IFLA_BOND_ARP_VALIDATE], "ARP validating cannot be used with MII monitoring"); return -EINVAL; } ... } bond_option_arp_validate_set() does not check miimon either. So the bond's current miimon state never blocks arp_validate. Handling IFLA_BOND_ARP_INTERVAL first, which clears bond->params.miimon, has no effect on whether arp_validate is accepted. It looks like a plain "ip link set bond0 type bond arp_validate all" on a bond running miimon would also be accepted. The combined command works because iproute2 does not send IFLA_BOND_MIIMON in that request. Could the comment be reworded or dropped so it does not describe a constraint and an ordering dependency that the kernel doesn't have? > + ip -n "$h_ns" link set bond0 type bond arp_interval "$ARP_INTERVAL" \ > + arp_validate all > + check_err $? "Failed to switch to the ARP monitor" [ ... ] -- Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261201-bonding-arp-reseed-v1-0-984d4a3991cb%40well-founded.dev