Skip to content

bonding: support aggregator selection based on port priority

Hangbin Liu linux-doc linux-kselftest netdev 5 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest3 patches 0 repliesApplied 3/3
  2. v43 patches 3 repliesSuperseded
  3. v33 patches 5 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v23 patches5 repliesSuperseded
v13 patches8 repliesSuperseded

Changes in v5 from the cover letter

a) rename 'prio' to 'actor_port_prio' in bond_ad_select_tbl (Jay Vosburgh)
b) update document description

Patches in v5 All 3 applied

#Subject and filesSizeRepliesApplied
1/3bonding: add support for per-port LACP actor priorityDocumentation/networking/bonding.rst drivers/net/bonding/bond_3ad.c drivers/net/bonding/bond_netlink.c +4 more+68 -00 repliesApplied
2/3bonding: support aggregator selection based on port priorityDocumentation/networking/bonding.rst drivers/net/bonding/bond_3ad.c drivers/net/bonding/bond_options.c +1 more+45 -80 repliesApplied
3/3selftests: bonding: add test for LACP actor port prioritytools/testing/selftests/drivers/net/bonding/Makefile tools/testing/selftests/drivers/net/bonding/bond_lacp_prio.sh tools/testing/selftests/net/forwarding/lib.sh +1 more+134 -250 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [PATCHv5 net-next 0/3] bonding: support aggregator selection based on port priority

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.

v5:
a) rename 'prio' to 'actor_port_prio' in bond_ad_select_tbl (Jay Vosburgh)
b) update document description

v4:
a) fix actor_port_prio minimal value (Jay Vosburgh)
b) fix ad_agg_selection_test comment order (Paolo Abeni)
c) restruct selftest, reduce duplication (Paolo Abeni)

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          |  25 +++-
 drivers/net/bonding/bond_3ad.c                |  31 +++++
 drivers/net/bonding/bond_netlink.c            |  16 +++
 drivers/net/bonding/bond_options.c            |  45 +++++++-
 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     | 108 ++++++++++++++++++
 tools/testing/selftests/net/forwarding/lib.sh |  24 ----
 tools/testing/selftests/net/lib.sh            |  24 ++++
 11 files changed, 247 insertions(+), 33 deletions(-)
 create mode 100755 tools/testing/selftests/drivers/net/bonding/bond_lacp_prio.sh
Signature · 1 line
2.50.1