Article View: linux.kernel.netdev
Article #26459[PATCH net-next v2 0/2] bonding: reseed the ARP monitor when it starts
From: Ramses de Norre via B4 Relay
Date: Thu, 03 Dec 2026 15:27
Date: Thu, 03 Dec 2026 15:27
49 lines
12878 bytes
12878 bytes
bond_enslave() seeds the ARP monitor timestamps of a new slave. When the
monitor starts later, from bond_open() or when arp_interval is set on a
bond that uses miimon, those seeds are as old as the time since
enslavement. The first monitor run then takes the UP slaves down before
a single probe went out.
This is the follow-up I mentioned in the v5 cover letter of the last_rx
series, which is now in net-next.
Patch 1 reseeds the slaves when the monitor starts.
Patch 2 adds a selftest for both start paths. It fails without patch 1
and passes with it.
Link: https://lore.kernel.org/netdev/20261030-bonding-last-rx-v5-0-0b9b653f2f94@well-founded.dev/
Signed-off-by: Ramses de Norre <ramses@well-founded.dev>
---
Changes in v2:
- Patch 1: only give a fresh seed to a slave that is UP and has
carrier. Only move the timestamps of other slaves back, so last_rx of
an active slave that is not UP cannot pass its last_link_up (Sashiko).
- Patch 1: say that recv_probe can still be set when reseeding after a
switch from the ARP monitor to miimon and back (Sashiko).
- Patch 2: use net/lib.sh instead of forwarding/lib.sh and drop
setup_wait (Hangbin).
- Patch 2: fix the comment on why arp_validate is set separately
(Sashiko).
- Link to v1: https://patch.msgid.link/20261201-bonding-arp-reseed-v1-0-984d4a3991cb@well-founded.dev
---
Ramses de Norre (2):
bonding: reseed the ARP monitor when it starts
selftests: bonding: test that the ARP monitor keeps UP slaves when it starts
drivers/net/bonding/bond_main.c | 90 +++++++++---
drivers/net/bonding/bond_options.c | 6 +-
include/net/bonding.h | 1 +
.../testing/selftests/drivers/net/bonding/Makefile | 1 +
.../drivers/net/bonding/bond_arp_monitor_start.sh | 151 +++++++++++++++++++++
5 files changed, 227 insertions(+), 22 deletions(-)
---
base-commit: 02e8a63b4685a4321c60d562edabecc097f4a0d9
change-id: 20261201-bonding-arp-reseed-c24c7b5f99f3
Best regards,
--
Ramses de Norre <ramses@well-founded.dev>
Technical Details
Message-ID:
<20261203-bonding-arp-reseed-v2-0-de49c2a3bb1e@well-founded.dev>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.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-376708-linux-kernel-netdev=dewy.ruShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.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-376708-linux-kernel-netdev=dewy.ru From: devnull+ramses.well-founded.dev@kernel.org (Ramses de Norre via B4 Relay) Newsgroups: linux.kernel.netdev Subject: [PATCH net-next v2 0/2] bonding: reseed the ARP monitor when it starts Date: Thu, 03 Dec 2026 17:27:41 +0200 Organization: Usenet Network Message-ID: <20261203-bonding-arp-reseed-v2-0-de49c2a3bb1e@well-founded.dev> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="2527458"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:toMQf5VryMaRw6IfytYo37Llcgw= sha256:VI734XwoWJtMXuxGPe7ZHUqcvmFrovmHIuhIt1f0sQM= sha1:r8HIUwWmweShMTuDmWVNQW9pYoQ= sha256:0PouGph4rtGzM9MtophnC/GMWFLAL2L3DTuBQ9zCo4c= 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 E18491179AA; Thu, 3 Dec 2026 18:28:11 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.74 X-Spam-Status: No, score=-3.74 tagged_above=-9999 required=6.31 tests=[DKIMWL_WL_HIGH=-0.24, 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 0wichUHaFfYB; Thu, 3 Dec 2026 18:28:04 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-376708-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 7D9221179A1; Thu, 3 Dec 2026 18:27:55 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 7F2E22504E; Thu, 3 Dec 2026 15:27:53 +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=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796311672; b=Re8uyykB/hnsJNyj/vDSUbuofXzIqIF2QFR6697A5lIsmJBF8OpyLTzQ3Ydu2/eGz+yM n9RUBEFRsoq2P0rg8aiCcGg/yuuEVK674G8H57KCuKMBAi6FfXTauFN6XwcFmaaInGpax qf6rbwH1Mf1p6JHe4UdibMOzd611WpKCWCSqbZyo3I6tcetMYrVUwp0HvPMdrWgCjneoN QQdPLd/89W6EZk4Vj+Gi6Dtk23u6bG3JcmJCq2QmZ/aF4njouobEu2UEEK9lJ2vtMh6n3 6Rqwc4zaIb85NkefpTvA1HRZ4jYOvzB673VPJNlZwhAACDsztjf1sGeffHj8KvlSIug== X-ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796311672; h=X-Original-To:Received:Received:DKIM-Signature:Received:From:Subject: Date:Message-Id:X-Mailing-List:List-Id:List-Post:List-Help: List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Type:Content-Transfer-Encoding:X-B4-Tracking:X-Change-ID:To: Cc:X-Mailer:X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To; bh=mbDaG9wsMTAHvXVAirVl1ZF77ii/hp9l/vKRiaePRG4=; b=cPAH7KQZ/cvWI0MGodFLnQ8rbTbgpC/WEb2WbV1T29iC3vHf9CCp0q0Z2AuSRwWJusRn fQDYO0P1ou0yKKqbU5XyEDs+CD79oFyee8C8CuDw6OxldLkHP4stqOtyBsYfClpj4dyz/ GBAL10uRQvlmedCF4Hn9/+DBQ2fV4Dj+5sK5zCueMbnz4KmzZQHvXKyI9H5qOzDnI+oY+ kXZBV8HR6cHRnesY2Z/Wnhr1T/0oqOnKrPlFYLH8CPL8eSvlWmMI+1ORjrjiLraDDKftP LVcXx6dvn0MM47nCCCA3XhkMNc1fuegnl8nQFIcv5DCXMhNVuC47XjRqJJ05lcCJZ7w== X-ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=XcO51kyU; 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 2B202606A684; Thu, 3 Dec 2026 15:27:52 +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=XcO51kyU X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796311666; b=FxjbGN5sbUsqL9VzFJ/MNPS7CU8jre+NsDH/rpBsqS51281RT+gOU9cLcoWrSwxd1xxu JvduOmMGRzi5hbSAaTN5V3l0J4DeYVu2wO1aCBEjHOBzlLQm08H9sNtO7jfqCegB/Nd3m BUvdhL+1MKXjhRD29uAEImEip2oIFYk3UGWrHu7a1m1jn34IvjL28/+izfnx0eO1/TG9y GzEMWi7NsSIkboINHrBl8pzXYBkMIAxEcs0ryhkcAZmiuqqs5jtMT+dnBPY/VcFXQ4wve W2rihASuquc2gIdRZU6wTweTBPj2wGg3dbtivbxeoHf8HYfn5gn80h3kzkxPN5Xgdxw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796311666; h=Received:DKIM-Signature:Received:From:Subject:Date:Message-Id: MIME-Version:Content-Type:Content-Transfer-Encoding:X-B4-Tracking: X-Change-ID:To:Cc:X-Mailer:X-Developer-Signature:X-Developer-Key: X-Endpoint-Received:X-Original-From:Reply-To; bh=mbDaG9wsMTAHvXVAirVl1ZF77ii/hp9l/vKRiaePRG4=; b=F0GQ5pS97COMsrnXTRG43IEn9teJYi3VjJs0M4c1RzDG3I3vHywXPZiqYyVT2UmWv2g+ Pk7f1GZr6IbzMbg/jcdCeYmVwhEifWxQWp8FEJjaBxf08/dglm4ohwXA6WHKYqt2iyeKp 7c9Llw0wlcyc7sh3J/eXvk2jdLAr9gYUdGxdDHPKiW3piMVS6A2MkoZ7vhLhIH+5ud6Ad Q3bb7kzgJvi2h7ZRXry4sWulQYv9hhRMVFqVjJ4ficxaC0IvNM+zgzeZaaRGjfWyw7Bwn TEeqi5xPYyPP+f6CRAaxx6M37xSdSyVZPLrKo8A8sAzppUZbD6SajeNAzfMqYs46DpA== 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=XcO51kyU; arc=pass header.oldest-pass=0 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 6413F606A32F; Thu, 3 Dec 2026 15:27:46 +0000 (UTC) X-Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 X-ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1796311666; b=gLIw58rjZ2f1hYjaPOib4wPGmlg5HQ3i/FRkjuLl0oHGE+D/R6cqu8HaMMZeiP6D5VsW BhM3IVL9GxkxNqDAyLlV0lQevQLGPOy/Km9VqbHiHi+Redz06NRZubxae2RmDIaByefID MECMqyZKehMQ2mHyvC7xHYaA7ytZTWc6nfAz93sr7h5SaFDB4LpIXJ44rsjUeqbFsitXV itV2XgttEyBLVhpihpWfGlK4raT2FuwudpaoHEPd40ALCdr8oCnBWWaWFL8lZpkVSDtYx k/EVBt1V2TRFQdWgEC8Y6twRmVGRDogOiwlrGEOlO51VE91okV3lhZ6IJJuYffCMUEw== X-ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1796311666; h=DKIM-Signature:Received:From:Subject:Date:Message-Id:MIME-Version: Content-Type:Content-Transfer-Encoding:X-B4-Tracking:X-Change-ID:To: Cc:X-Mailer:X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To; bh=mbDaG9wsMTAHvXVAirVl1ZF77ii/hp9l/vKRiaePRG4=; b=NtUlwn5v7q2xo97r+rdTepO6av66JIKpqblBN1pUPmdZony34wLDN/6QEmp1pxmi1sj4 vTt58q83nL+3Bn9u1OjrbYJQOgv801mTefes8OhDgkM1TUdJpWxAyNYMrUrSn/Rb+SSEz K7ko4jtSYr3XfTJHFiGGxlpiT1qcN0pf8Roj+mRXg+HL2a8kpqcZi9cCKLlp/fjx55IUN Km6OcP8jS0lKdngcZYBGp/RDhnPjwa6WRj8Wf/OlaCIJTDzKalpfZw7CiNaaPGSS6QNbg Iz8M7gLcNsY+VE0/5R8bOz6bnFzgqkKI7KuKYSvE11nnxt6XR3o1RBV8QdT9BO/aLpQ== X-ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 X-Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id 344C01F000C1; Thu, 3 Dec 2026 15:27:44 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796311666; bh=mbDaG9wsMTAHvXVAirVl1ZF77ii/hp9l/vKRiaePRG4=; h=From:Subject:Date:To:Cc:Reply-To; b=XcO51kyUjaKiA5T5hMf4aWCmfGszDqAa65tz2nrSndbHpVW0JEhLFTBkHMhmcjJb/ mQTEpn4wC+Cq4n3+mwPizm1szeRJgTQteJCZpGEAiyrzSMQQM9lFf/2n00MRGtSmRQ 3A9lD0JBaNfYRDt0xP4TviQPtOwvpX5b/PzTg1Ion4+QXYRkm+p4aewTew7bnqGPMe ehUnoJJGD2jLPtoRMIMYaBf1eXhZxqEH0VSh+Jv+NtfbGzNiLzOQ9mnhclF2Bmx8/E Da1GuokuPeMoOAiPX5V9FvMtKeb0QXqdVSUi0ituj5O+UZYy3WH8aJTj0NpuA+OfH+ BSSlr5RLiA/IQ== X-Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id BB58C4F9FD; Thu, 3 Dec 2026 15:27:43 +0000 (UTC) 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 X-B4-Tracking: v=1; b=H4sIAAAAAAAC/32Nyw6DIBREf8XcdW8jaB901f9oXAhclKYBA0htj P9etfsuT2bmzAyRgqUIt2KGQNlG690K/FCA6lvXEVq9MvCSnxkvGUrvtHUdtmHAQJFIo+K1usi TEcJUsA6HQMZOu/QBjhI6mhI0vySO8kkqbc6t29uYfPjs/5nti39XmWGJ4lrruq2EYEre3/R6o fGj06SPmjI0y7J8AXjoSPvXAAAA X-Change-ID: 20261201-bonding-arp-reseed-c24c7b5f99f3 X-Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Nikolay Aleksandrov <razor@blackwall.org>, Hangbin Liu <hangbin.liu@linux.dev>, Shuah Khan <shuah@kernel.org>, Ramses de Norre <ramses@well-founded.dev>, Hangbin Liu <hangbin.liu@linux.dev> X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1796311662; l=2110; i=ramses@well-founded.dev; s=20260817; h=from:subject:message-id; bh=vWOFmE2R2jLMbwjkKf6HcoN355Pus91tvQ3hhjFnaXI=; b=WeslhCxV7DfaOz2denveD26Nrt0KFBdF5tYQKww1wAziKAArlb4PMb+rGy3EphFBwG4ULY/tz IAIRN0SSIUjAPxmnMtbv+KqgIld29JvtoO2Vgnn2vKNrbL431JNNDtd X-Developer-Key: i=ramses@well-founded.dev; a=ed25519; pk=1vBXHBVeJBMaC+2Zuonl0QQhEgGIQHERyF5RZNnrCmw= X-Endpoint-Received: by B4 Relay for ramses@well-founded.dev/20260817 with auth_id=957 X-Original-From: Ramses de Norre <ramses@well-founded.dev> X-Reply-To: ramses@well-founded.dev