public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [Bonding Draft Proposal] Add lacp_prio Support for ad_select?
@ 2025-06-24  6:53 Hangbin Liu
  2025-06-26 23:28 ` Jay Vosburgh
  0 siblings, 1 reply; 6+ messages in thread
From: Hangbin Liu @ 2025-06-24  6:53 UTC (permalink / raw)
  To: Jay Vosburgh
  Cc: Andrew Lunn, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Jiri Pirko, netdev

Hi Jay,

We have a customer setup involving two separate switches with identical
L2/VLAN configurations. Each switch forms an independent aggregator
(port-channel), and the end host connects to both with the same number of
links and equivalent bandwidth.

As a result, the host ends up with two aggregators under a single bond
interface. Since the user cannot arbitrarily override port count or
bandwidth, they are asking for a new mechanism, lacp_prio, to influence
aggregator selection via ad_select.

Do you think this is a reasonable addition?

If yes, what would be the best way to compare priorities?

1. Port Priority Only. Currently initialized to 0xff. We could add a parameter
   allowing users to configure it.
   a) Use the highest port priority within each aggregator for comparison
   b) Sum all port priorities in each aggregator and compare the totals

2. Full LACP Info Comparison. Compare fields such as system_priority, system,
   port_priority, port_id, etc.

At present, the libteam code has implemented an approach that selects the
aggregator based on the highest system_priority/system from both local and
partner data.[1]

Looking forward to your thoughts.

Best regards,
Hangbin

[1] https://github.com/jpirko/libteam/blob/master/teamd/teamd_runner_lacp.c#L402

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

end of thread, other threads:[~2025-07-03 19:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-24  6:53 [Bonding Draft Proposal] Add lacp_prio Support for ad_select? Hangbin Liu
2025-06-26 23:28 ` Jay Vosburgh
2025-06-27  4:33   ` Hangbin Liu
2025-07-01 17:08     ` Jay Vosburgh
2025-07-02  7:44       ` Hangbin Liu
2025-07-03 19:42         ` Jay Vosburgh

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