[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aKvPERQJS3pz_DTW@fedora>
Date: Mon, 25 Aug 2025 02:48:49 +0000
From: Hangbin Liu <liuhangbin@...il.com>
To: Jay Vosburgh <jv@...sburgh.net>
Cc: netdev@...r.kernel.org, Andrew Lunn <andrew+netdev@...n.ch>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
Nikolay Aleksandrov <razor@...ckwall.org>,
Simon Horman <horms@...nel.org>, Shuah Khan <shuah@...nel.org>,
Jonathan Corbet <corbet@....net>, Petr Machata <petrm@...dia.com>,
Amit Cohen <amcohen@...dia.com>,
Vladimir Oltean <vladimir.oltean@....com>,
Stephen Hemminger <stephen@...workplumber.org>,
David Ahern <dsahern@...il.com>,
Jonas Gorski <jonas.gorski@...il.com>, linux-doc@...r.kernel.org,
linux-kselftest@...r.kernel.org
Subject: Re: [PATCHv3 net-next 1/3] bonding: add support for per-port LACP
actor priority
On Fri, Aug 22, 2025 at 05:33:43PM -0700, Jay Vosburgh wrote:
> Hangbin Liu <liuhangbin@...il.com> wrote:
>
> >Introduce a new netlink attribute 'ad_actor_port_prio' to allow setting
>
> Nit here "actor_port_prio"?
>
> One more comment below ...
>
> >the LACP actor port priority on a per-slave basis. This extends the
> >existing bonding infrastructure to support more granular control over
> >LACP negotiations.
> >
> >The priority value is embedded in LACPDU packets and will be used by
> >subsequent patches to influence aggregator selection policies.
> >
> >Signed-off-by: Hangbin Liu <liuhangbin@...il.com>
> >---
> > Documentation/networking/bonding.rst | 9 +++++++
> > drivers/net/bonding/bond_3ad.c | 4 ++++
> > drivers/net/bonding/bond_netlink.c | 16 +++++++++++++
> > drivers/net/bonding/bond_options.c | 36 ++++++++++++++++++++++++++++
> > include/net/bond_3ad.h | 1 +
> > include/net/bond_options.h | 1 +
> > include/uapi/linux/if_link.h | 1 +
> > 7 files changed, 68 insertions(+)
> >
...
> >diff --git a/drivers/net/bonding/bond_3ad.c b/drivers/net/bonding/bond_3ad.c
> >index 2fca8e84ab10..eb0fb7374391 100644
> >+static const struct bond_opt_value bond_actor_port_prio_tbl[] = {
> >+ { "minval", 1, BOND_VALFLAG_MIN},
> >+ { "maxval", 65535, BOND_VALFLAG_MAX},
> >+ { "default", 255, BOND_VALFLAG_DEFAULT},
> >+ { NULL, -1, 0},
>
> Does the standard forbid actor_port_prio being set to zero? The
> description I'm finding says only that it's an unsigned integer and two
> octets in size (802.1AX-2014 6.4.2.3 LACPDU structure).
>
> -J
Yes, I also can't find a clear doc about the minimal value of port priority.
I will set it to 0.
Thanks
Hangbin
Powered by blists - more mailing lists