From: Ramses de Norre via B4 Relay <devnull+ramses.well-founded.dev@kernel.org>
To: Jay Vosburgh <jv@jvosburgh.net>,
Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Jakub Kicinski <kuba@kernel.org>,
Paolo Abeni <pabeni@redhat.com>, Jiri Bohac <jbohac@suse.cz>,
Eric Dumazet <edumazet@kernel.org>,
Willem de Bruijn <willemb@google.com>,
Simon Horman <horms@kernel.org>
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>
Subject: [PATCH net-next v2 0/2] bonding: reseed the ARP monitor when it starts
Date: Thu, 03 Dec 2026 17:27:41 +0200 [thread overview]
Message-ID: <20261203-bonding-arp-reseed-v2-0-de49c2a3bb1e@well-founded.dev> (raw)
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>
next reply other threads:[~2026-12-03 15:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 15:27 Ramses de Norre via B4 Relay [this message]
2026-12-03 15:27 ` [PATCH net-next v2 1/2] " Ramses de Norre via B4 Relay
2026-12-03 15:27 ` [PATCH net-next v2 2/2] selftests: bonding: test that the ARP monitor keeps UP slaves " Ramses de Norre via B4 Relay
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261203-bonding-arp-reseed-v2-0-de49c2a3bb1e@well-founded.dev \
--to=devnull+ramses.well-founded.dev@kernel.org \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=hangbin.liu@linux.dev \
--cc=horms@kernel.org \
--cc=jbohac@suse.cz \
--cc=jv@jvosburgh.net \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=ramses@well-founded.dev \
--cc=razor@blackwall.org \
--cc=shuah@kernel.org \
--cc=willemb@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®