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/2026…@well-founded.dev/
Signed-off-by: Ramses de Norre <rams…@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 | 58 +++++---
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 | 154 +++++++++++++++++++++
5 files changed, 198 insertions(+), 22 deletions(-)
---
base-commit: 02e8a63b4685a4321c60d562edabecc097f4a0d9
change-id: 20261201-bonding-arp-reseed-c24c7b5f99f3
Best regards,
--
Ramses de Norre <rams…@well-founded.dev>
[PATCH net-next 0/2] bonding: reseed the ARP monitor when it starts
- From
- devn…@kernel.org (Ramses de Norre via B4 Relay)
- Organization
- Usenet Network
- Message-ID
- <2026…@well-founded.dev>
- Date
- Newsgroups
- linux.kernel.netdev