[PATCH net-next v3 0/2] bonding: reseed the ARP monitor when it starts
From: Ramses de Norre via B4 Relay
Date: Sun Dec 06 2026 - 05:24:51 EST
The ARP monitor timestamps are seeded at enslave time. When the monitor
starts later, those seeds can be stale and the first monitor run takes
the UP slaves down. This is the follow-up announced in the v5 cover
letter of the last_rx series. It targets net-next because it builds on
that series.
Patch 1 reseeds the slaves when the monitor starts. Patch 2 adds a
selftest that fails without it.
Link: https://lore.kernel.org/netdev/20261030-bonding-last-rx-v5-0-0b9b653f2f94@xxxxxxxxxxxxxxxx/
Signed-off-by: Ramses de Norre <ramses@xxxxxxxxxxxxxxxx>
---
Changes in v3:
- Patch 1: require netif_running() for a fresh seed (Sashiko).
- Shorten comments and commit messages.
- Link to v2: https://patch.msgid.link/20261203-bonding-arp-reseed-v2-0-de49c2a3bb1e@xxxxxxxxxxxxxxxx
Changes in v2:
- Patch 1: only give a fresh seed to a slave that is UP and has
carrier, only move the others back (Sashiko).
- Patch 2: use net/lib.sh (Hangbin).
- Link to v1: https://patch.msgid.link/20261201-bonding-arp-reseed-v1-0-984d4a3991cb@xxxxxxxxxxxxxxxx
---
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 | 83 +++++++++---
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 | 145 +++++++++++++++++++++
5 files changed, 214 insertions(+), 22 deletions(-)
---
base-commit: 02e8a63b4685a4321c60d562edabecc097f4a0d9
change-id: 20261201-bonding-arp-reseed-c24c7b5f99f3
Best regards,
--
Ramses de Norre <ramses@xxxxxxxxxxxxxxxx>