Re: [PATCH net-next 1/3] bonding: add support for per-port LACP actor priority
From: Hangbin Liu <hidden>
Date: 2025-08-12 04:48:46
Also in:
linux-doc, linux-kselftest, lkml
On Fri, Jul 25, 2025 at 11:55:54AM +0300, Nikolay Aleksandrov wrote:
On 7/24/25 11:16, Hangbin Liu wrote:quoted
Introduce a new option ad_actor_port_prio, allowing users to set the actor port priority on a per-port basis in LACPDU. This priority can be used in future enhancements to influence aggregator selection via ad_select policy. Signed-off-by: Hangbin Liu <redacted> --- Documentation/networking/bonding.rst | 9 +++++++ drivers/net/bonding/bond_3ad.c | 2 ++ drivers/net/bonding/bond_netlink.c | 16 +++++++++++++ drivers/net/bonding/bond_options.c | 35 ++++++++++++++++++++++++++++ include/net/bond_3ad.h | 1 + include/net/bond_options.h | 1 + include/uapi/linux/if_link.h | 1 + 7 files changed, 65 insertions(+)diff --git a/Documentation/networking/bonding.rst b/Documentation/networking/bonding.rst index a4c1291d2561..5e105e7ac8e6 100644 --- a/Documentation/networking/bonding.rst +++ b/Documentation/networking/bonding.rst@@ -193,6 +193,15 @@ ad_actor_sys_prio This parameter has effect only in 802.3ad mode and is available through SysFs interface. +ad_actor_port_prio + + In an AD system, this specifies the port priority. The allowed range + is 1 - 65535. If the value is not specified, it takes 255 as theLeaving this as a note: it is set to 255 because actor_port_priorty is initialized to 255 and port_priority is initialized to actor_port_priority at slave bind time.
Hi Nikolay, Is this a note for you? Or you want me add it to the doc? Thanks Hangbin