🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #25160

[PATCH net-next 0/2] bonding: reseed the ARP monitor when it starts

#25160
From: Ramses de Norre via B4 Relay
Date: Tue, 01 Dec 2026 10:20
36 lines
11992 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>
---
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 <ramses@well-founded.dev>
Technical Details
Message-ID: <20261201-bonding-arp-reseed-v1-0-984d4a3991cb@well-founded.dev>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374936-linux-kernel-netdev=dewy.ru

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374936-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 0/2] bonding: reseed the ARP monitor when it
 starts
Date: Tue, 01 Dec 2026 12:20:28 +0200
Organization: Usenet Network
Message-ID: <20261201-bonding-arp-reseed-v1-0-984d4a3991cb@well-founded.dev>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="1684612"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:hRqtNxxoihRw3JkoDEhSAmFdPJg= sha256:Xj16zBtkpsWNrdz0j+7m24m2LKNumE2DCswzPZ5Qq+g=
	sha1:fnI0lzrE5+0Vsgw2FrOQvbQ4OfU= sha256:Hw5/aRliR3twDWjwKQ3hJdwccO1Z6eA58X26ShqNqeE=
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 63674117326; Tue,  1 Dec 2026 13:20:54 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, 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 oJEm9km9bfYq;
	Tue,  1 Dec 2026 13:20:50 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-374936-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 48C9311716E; Tue,  1 Dec 2026 13:20:42 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 3E2AA31C84; Tue,  1 Dec 2026 10:20:40 +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=1796120439;
	b=NgvkdBFGBfcjpZDNvAbxc/pL8HBINAql8D9rNDBH5dlchfycDXb9oVkhhPUx7tXUJjDY
	 S+g9VVAvZbdPmVKSYUT8tto8M/JnS7M93yNGWC/BpCOZ1pPi+ymxl9HHX9/FdXMyJvSNh
	 bP5qp0GW9tnmNZ4Gi+6msTnbOiILykJ2SurpvLonDX1Dhr8dVmNi5AqSy3drHZA17cInP
	 pzeop7zt5kI9Z8Nu8UNZynY8aSafxNSP25l5fc3zwgY1DiCVgWNtiFzOZV+srTVcrdOW9
	 4PSUJAkOpK7nhyA1epIwz2ByPrT/xVjn6gmCXfOOKdxSFuW5GcCyi71pcMzMDwOjegw==
X-ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796120439;
	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=cbJItOj6f+lrjHAy4ArIQrvJPeGs49jK0As+3cCJ39Y=;
	b=pM5qYIctjSI9gh1y2VIbU76fH75lbJSt1Q/vDGUZ64Un0pB3SNKJc+f0u7p8UaYsAH70
	 ggk4gyXKdcVh7R/nuD5lbb3fHFq0Af9mjEL/dC2VjUmwpQN8rm5r+1WNy8YYJFiMCrzgz
	 +JzK9neDz+FBcPU7av6cZ37EV3RRME9NLB1qmjRiMKkrbbc9qUzMf59pqstWy0xPYk13f
	 AuV73o/8+UeXKahg8fgvFmwH1ot1D9ID6hR66ftJ58N9e6FgrfgSfTRJyvw6Tj6TAMB+u
	 eljXVaWru0Lb9LC3Er7O1EXi6AFbp3h/XHePuXG/4tRDkAZGaQCV4P0o7xafALoDSeQ==
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=P3lSKwyD;
	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 7B16F606A336;
	Tue,  1 Dec 2026 10:20:39 +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=P3lSKwyD
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=1796120434;
	b=XTOtq/17VwDKN/1ays/EpAtBIjngZmJmeJsuRERBO1CuFB3sKNBtOy4bzzAnbmGxAffM
	 MdXL+IGTfZuvP2Ii+LIU4H4qwDYEaOR7keCOORZN0XJQNDYqcGnE6QhwgUDfe7j9sRBuE
	 keN69I6yrJupLNaZ64WjIgqTYl1SxovT2QXxO2cQY4sqRAJE42uujBi4ANi4LsjCO+YPe
	 aioGO0TplFMlPVsvYvIH/1eu7M1XxQuRqbVJoMhTwiHPCSoMa4t1MJK/V306jQIRpsCPQ
	 0wb8IeaXP/IR6kvK9q0YDRmilq7yDbbSgfwD26XvmaRMiYeCiAHgBgvl/1FWJWMmC0g==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796120434;
	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=cbJItOj6f+lrjHAy4ArIQrvJPeGs49jK0As+3cCJ39Y=;
	b=JINyF0apCcwM8gUSHh76QSsj/jigesfLlvQNAsN1qUZhLIs6GZmKx5HaauET+fYiAozb
	 kP3enBrFK2sueHBqE3N88CdYHX4QtQLIloMf0fkh+/BfGutsdjF2oJS5nJTmOXOLDyjqE
	 9gzq8+KyLJ259CICRFEMAljkpLZl/CfD1ITkC2pimkQgYtfGhFm1S+oNisy8ph2b4UQ+y
	 7EPs+PMBxpAg0/OjGvyVdQFHPAFi0dV3aB90K9G/2M6j0sAsVTIJgYY+mlS/3rVGqq0k5
	 znQv9b8TPRNVx4rgSGPg6LPvhTpEZoERIX3WSYf0meVdV+pVrrI0RL4wdm6vMzJNDfg==
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=P3lSKwyD;
	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 B4B47606A31A;
	Tue,  1 Dec 2026 10:20:34 +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=1796120434;
	b=p8K5uEjb+zoJ+V0YbdjjR5WyT4ek82o6pC3t9EGvM0tHXjw21v07RDGmEA4WCCjXTAEw
	 uREkGxS8iGw/wrw8YXyyg6LZInhw4jg2Q5y5ne0fHXomULxspnOIKbH+b/gczlUk/X32C
	 aJ9TtV33fcxEaGxIauM9w1t0ByoEVZt4FjGFkMNKF1KCiL2C8OBWuY0S3f3B1wGrQkkEf
	 DujBqn7hGEtF9nfIX/CJ2lcrkc95PxOZ1Ywq/63Uowrho+cPQ/bb8sXQFDS8+CrDsTuok
	 bCu6oUl3fvFPr2gGL9e+dmBdBj3JOb18vmzHZ/uD6OsdZLkvcG4LiyEe5ULaSHk/UCw==
X-ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256;
	c=relaxed/relaxed; t=1796120434;
	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=cbJItOj6f+lrjHAy4ArIQrvJPeGs49jK0As+3cCJ39Y=;
	b=ChTKPyCovA8+4puaKGXr3xjoGUWKRh9OpUB0tYHf3Zv7MD825BSN/cAvhWfxRruRwgXw
	 +Ti0ebKjbOt8GYk/lnM/GVFeZ3ztQ0WH5cbw8C6RrVXZoQ7f1Ow+sutI06D6+p2H9txDB
	 ir9i+cwSfe4XSOlcOq+BRDLg5k1pxOmZz1WQztnyomyfURR1mFX6nUGCRQL+rStClIikn
	 j67Rgdczu9nDwhkvyZEQekOHzSmMqIZeSaoKHMqGbt61psxWmy/XyJXzmOUnHs/V8Io35
	 kcdAoKfsKu8IfGKeks1VsQEOvoZeU4DQTnSnB3QgtAXN3QUuhHaGjspmMuU/5JwWzvQ==
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 7D4DA1F00893;
	Tue,  1 Dec 2026 10:20:33 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1796120434;
	bh=cbJItOj6f+lrjHAy4ArIQrvJPeGs49jK0As+3cCJ39Y=;
	h=From:Subject:Date:To:Cc:Reply-To;
	b=P3lSKwyD0kD38FYsKnf73xY/LPafVY7x1SeuXOh2AzBVUoB7pK5eFzcDUUXJhFyzg
	 20CyTIRBnwYYmFwwkuAVFtcL29GJLzRXUGA/tgdyWmuC9VQGofKDrK5xMPw8SSiphi
	 xaBMzAbgttQqOrYe/XheEO4VMajD/dmUn99y1f7XGZuq0JlF1ADJMu3dTqsxr0G3J6
	 2oX1e2IDd9JWjXoUhtqS35uM3M9RN6A8dvkRiP7BTKHpHxKJzGW56VC1uwm3ZAunU3
	 hJFS8XGuKrOewHVcmHNWg9l6mXVqJ0l7FD9XBm3Cxz3m9ZC+mNpDnFC5xL99YwtkOb
	 qix/tAJHYgtlQ==
X-Received: from nexus.subspace.kernel.org (localhost [IPv6:::1])
	by lkml.kernel.org (Postfix) with ESMTP id D1B284ECFA;
	Tue,  1 Dec 2026 10:20:32 +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/yWMwQ6CMBAFf4Xs2U1oFQ3+ivFA21dcDwtpiyEh/
 LtVjpPJzEYZSZDp3myU8JEsk1Ywp4b8a9ARLKEy2dZejW0Nu0mD6MhDmjkhA4G9vfib62LfxzP
 VcE6Isv6nD1IUVqyFnofJi3vDl9+T9v0L+zmKY4AAAAA=
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>
X-Mailer: b4 0.15.2
X-Developer-Signature: v=1; a=ed25519-sha256; t=1796120430; l=1465;
 i=ramses@well-founded.dev; s=20260817; h=from:subject:message-id;
 bh=qrC6chQtyf8SUrqUkgE29SuQum0h7JvYRYyUtzMRI80=;
 b=FaqOne/zln3pzcYHmdqeEEOF4mMhsqW3o1eGctisu13wTt005W5MG1EJDY4XjD8300HGVkRDB
 GVGaT2j9WAkCcgbn6qVupn415jvP3Bl6uGZsKJkpmZz5wwh91EAW8wL
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