linux-kselftest.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/3] bonding: support aggregator selection based on port priority
@ 2025-07-24  8:16 Hangbin Liu
  2025-07-24  8:16 ` [PATCH net-next 1/3] bonding: add support for per-port LACP actor priority Hangbin Liu
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Hangbin Liu @ 2025-07-24  8:16 UTC (permalink / raw)
  To: netdev
  Cc: Jay Vosburgh, Andrew Lunn, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Nikolay Aleksandrov, Simon Horman,
	Shuah Khan, Jonathan Corbet, Petr Machata, Amit Cohen,
	Vladimir Oltean, Alessandro Zanni, linux-doc, linux-kselftest,
	linux-kernel, Hangbin Liu

This patchset introduces a new per-port bonding option: `ad_actor_port_prio`.

It allows users to configure the actor's port priority, which can then be used
by the bonding driver for aggregator selection based on port priority.

This provides finer control over LACP aggregator choice, especially in setups
with multiple eligible aggregators over 2 switches.

Hangbin Liu (3):
  bonding: add support for per-port LACP actor priority
  bonding: support aggregator selection based on port priority
  selftests: bonding: add test for LACP actor port priority

 Documentation/networking/bonding.rst          | 18 ++++-
 drivers/net/bonding/bond_3ad.c                | 31 ++++++++
 drivers/net/bonding/bond_netlink.c            | 16 ++++
 drivers/net/bonding/bond_options.c            | 36 +++++++++
 include/net/bond_3ad.h                        |  2 +
 include/net/bond_options.h                    |  1 +
 include/uapi/linux/if_link.h                  |  1 +
 .../selftests/drivers/net/bonding/Makefile    |  3 +-
 .../drivers/net/bonding/bond_lacp_prio.sh     | 73 +++++++++++++++++++
 tools/testing/selftests/net/forwarding/lib.sh | 24 ------
 tools/testing/selftests/net/lib.sh            | 24 ++++++
 11 files changed, 203 insertions(+), 26 deletions(-)
 create mode 100755 tools/testing/selftests/drivers/net/bonding/bond_lacp_prio.sh

-- 
2.46.0


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

end of thread, other threads:[~2025-08-12  4:48 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-24  8:16 [PATCH net-next 0/3] bonding: support aggregator selection based on port priority Hangbin Liu
2025-07-24  8:16 ` [PATCH net-next 1/3] bonding: add support for per-port LACP actor priority Hangbin Liu
2025-07-25  8:55   ` Nikolay Aleksandrov
2025-08-12  4:48     ` Hangbin Liu
2025-07-24  8:16 ` [PATCH net-next 2/3] bonding: support aggregator selection based on port priority Hangbin Liu
2025-07-25  9:02   ` Nikolay Aleksandrov
2025-07-25 12:48     ` Hangbin Liu
2025-07-24  8:16 ` [PATCH net-next 3/3] selftests: bonding: add test for LACP actor " Hangbin Liu
2025-07-24 14:31   ` Hangbin Liu
2025-07-24 14:35     ` Jakub Kicinski
2025-07-25  2:20       ` Hangbin Liu
2025-07-25 14:27         ` Jakub Kicinski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).