public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH net 0/2] bonding: 3ad: fix carrier state with no valid slaves
@ 2026-03-16 13:18 Louis Scalbert
  2026-03-16 13:18 ` [PATCH net 1/2] bonding: 3ad: fix carrier when " Louis Scalbert
  2026-03-16 13:18 ` [PATCH net 2/2] bonding: 3ad: fix mux port state on oper down Louis Scalbert
  0 siblings, 2 replies; 7+ messages in thread
From: Louis Scalbert @ 2026-03-16 13:18 UTC (permalink / raw)
  To: netdev
  Cc: jandrew+netdev, jv, edumazet, kuba, pabeni, fbl, andy, shemminger,
	Louis Scalbert

Hi everyone,

This series addresses a blackholing issue and a subsequent link-flapping
issue in the 802.3ad bonding driver when dealing with inactive slaves
and the `min_links` parameter.

Currently, when an 802.3ad bond has no slaves in the collecting
/ distributing state, the bonding master still reports its carrier as up.
This causes upper-layer protocols to consider the interface operational,
resulting in silently dropped traffic. 

Patch 1 fixes the core issue by ensuring the carrier is only asserted when
at least `min_links` slaves are genuinely in a valid state (collecting/
distributing, or collecting only if coupled_control is disabled).

Patch 2 fixes a side effect of the first patch. Tightening the carrier 
logic exposes a state persistence bug: when a physical link goes down, 
the LACP collecting/distributing flags remain set. When the link returns, 
the interface briefly hallucinates that it is ready, bounces the carrier 
up, and then drops it again once LACP renegotiation starts. Unsetting the 
SELECTED flag when the link goes down forces the state machine through 
DETACHED, clearing the stale flags and preventing the flap.

Louis Scalbert (2):
  bonding: 3ad: fix carrier when no valid slaves
  bonding: 3ad: fix mux port state on oper down

 drivers/net/bonding/bond_3ad.c | 28 ++++++++++++++++++++++++++--
 1 file changed, 26 insertions(+), 2 deletions(-)

-- 
2.39.2


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-03-20 14:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-16 13:18 [PATCH net 0/2] bonding: 3ad: fix carrier state with no valid slaves Louis Scalbert
2026-03-16 13:18 ` [PATCH net 1/2] bonding: 3ad: fix carrier when " Louis Scalbert
2026-03-19  1:14   ` Jay Vosburgh
2026-03-20 14:06     ` Louis Scalbert
2026-03-16 13:18 ` [PATCH net 2/2] bonding: 3ad: fix mux port state on oper down Louis Scalbert
2026-03-19  1:40   ` Jay Vosburgh
2026-03-20 10:01     ` Louis Scalbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox