linux-kselftest.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv3 net-next 0/3] bonding: support aggregator selection based on port priority
@ 2025-08-18  9:23 Hangbin Liu
  2025-08-18  9:23 ` [PATCHv3 net-next 1/3] bonding: add support for per-port LACP actor priority Hangbin Liu
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Hangbin Liu @ 2025-08-18  9:23 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, Stephen Hemminger, David Ahern, Jonas Gorski,
	linux-doc, linux-kselftest, 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.

v3:
a) add comments when init slave port_priority (Jonas Gorski)
b) rename ad_lacp_port_prio to lacp_port_prio (Jay Vosburgh)

v2:
a) set default bond option value for port priority (Nikolay Aleksandrov)
b) fix __agg_ports_priority coding style (Nikolay Aleksandrov)
c) fix shellcheck warns

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            | 37 ++++++++
 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     | 93 +++++++++++++++++++
 tools/testing/selftests/net/forwarding/lib.sh | 24 -----
 tools/testing/selftests/net/lib.sh            | 24 +++++
 11 files changed, 224 insertions(+), 26 deletions(-)
 create mode 100755 tools/testing/selftests/drivers/net/bonding/bond_lacp_prio.sh

-- 
2.50.1


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

end of thread, other threads:[~2025-08-25  2:49 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-18  9:23 [PATCHv3 net-next 0/3] bonding: support aggregator selection based on port priority Hangbin Liu
2025-08-18  9:23 ` [PATCHv3 net-next 1/3] bonding: add support for per-port LACP actor priority Hangbin Liu
2025-08-23  0:33   ` Jay Vosburgh
2025-08-25  2:48     ` Hangbin Liu
2025-08-18  9:23 ` [PATCHv3 net-next 2/3] bonding: support aggregator selection based on port priority Hangbin Liu
2025-08-21  9:16   ` Paolo Abeni
2025-08-18  9:23 ` [PATCHv3 net-next 3/3] selftests: bonding: add test for LACP actor " Hangbin Liu
2025-08-21  9:14   ` Paolo Abeni
2025-08-21 14:12     ` Hangbin Liu

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).