linux-kselftest.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Hangbin Liu <liuhangbin@gmail.com>
To: Jay Vosburgh <jv@jvosburgh.net>
Cc: netdev@vger.kernel.org, Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Nikolay Aleksandrov <razor@blackwall.org>,
	Simon Horman <horms@kernel.org>, Shuah Khan <shuah@kernel.org>,
	Jonathan Corbet <corbet@lwn.net>, Petr Machata <petrm@nvidia.com>,
	Amit Cohen <amcohen@nvidia.com>,
	Vladimir Oltean <vladimir.oltean@nxp.com>,
	Stephen Hemminger <stephen@networkplumber.org>,
	David Ahern <dsahern@gmail.com>,
	Jonas Gorski <jonas.gorski@gmail.com>,
	linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org
Subject: Re: [PATCHv3 net-next 1/3] bonding: add support for per-port LACP actor priority
Date: Mon, 25 Aug 2025 02:48:49 +0000	[thread overview]
Message-ID: <aKvPERQJS3pz_DTW@fedora> (raw)
In-Reply-To: <1547622.1755909223@famine>

On Fri, Aug 22, 2025 at 05:33:43PM -0700, Jay Vosburgh wrote:
> Hangbin Liu <liuhangbin@gmail.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@gmail.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

  reply	other threads:[~2025-08-25  2:49 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aKvPERQJS3pz_DTW@fedora \
    --to=liuhangbin@gmail.com \
    --cc=amcohen@nvidia.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=corbet@lwn.net \
    --cc=davem@davemloft.net \
    --cc=dsahern@gmail.com \
    --cc=edumazet@google.com \
    --cc=horms@kernel.org \
    --cc=jonas.gorski@gmail.com \
    --cc=jv@jvosburgh.net \
    --cc=kuba@kernel.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=petrm@nvidia.com \
    --cc=razor@blackwall.org \
    --cc=shuah@kernel.org \
    --cc=stephen@networkplumber.org \
    --cc=vladimir.oltean@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).