aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorHangbin Liu <liuhangbin@gmail.com>2025-09-02 06:44:59 +0000
committerPaolo Abeni <pabeni@redhat.com>2025-09-09 10:56:02 +0200
commit6b6dc81ee7e8ca87c71a533e1d69cf96a4f1e986 (patch)
treeb2b1fc976fd6636e7117c6fae55db06ddd4000ff /include/net
parentMerge branch 'support-exposing-raw-cycle-counters-in-ptp-and-mlx5' (diff)
downloadlinux-6b6dc81ee7e8ca87c71a533e1d69cf96a4f1e986.tar.gz
linux-6b6dc81ee7e8ca87c71a533e1d69cf96a4f1e986.zip
bonding: add support for per-port LACP actor priority
Introduce a new netlink attribute 'actor_port_prio' to allow setting 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> Link: https://patch.msgid.link/20250902064501.360822-2-liuhangbin@gmail.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/bond_3ad.h1
-rw-r--r--include/net/bond_options.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/net/bond_3ad.h b/include/net/bond_3ad.h
index dba369a2cf27..e9188646e22e 100644
--- a/include/net/bond_3ad.h
+++ b/include/net/bond_3ad.h
@@ -274,6 +274,7 @@ struct ad_slave_info {
struct port port; /* 802.3ad port structure */
struct bond_3ad_stats stats;
u16 id;
+ u16 port_priority;
};
static inline const char *bond_3ad_churn_desc(churn_state_t state)
diff --git a/include/net/bond_options.h b/include/net/bond_options.h
index 022b122a9fb6..e6eedf23aea1 100644
--- a/include/net/bond_options.h
+++ b/include/net/bond_options.h
@@ -78,6 +78,7 @@ enum {
BOND_OPT_PRIO,
BOND_OPT_COUPLED_CONTROL,
BOND_OPT_BROADCAST_NEIGH,
+ BOND_OPT_ACTOR_PORT_PRIO,
BOND_OPT_LAST
};