diff options
author | Hangbin Liu <liuhangbin@gmail.com> | 2022-06-21 09:49:19 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-06-24 12:27:59 +0200 |
commit | 0a2ff7cc8ad48a86939a91bd3457f38e59e741a1 (patch) | |
tree | e7ba839f3382905831d3f7b5eb56785af9f0a7ec /include/net/bonding.h | |
parent | bonding: add slave_dev field for bond_opt_value (diff) | |
download | linux-0a2ff7cc8ad48a86939a91bd3457f38e59e741a1.tar.xz linux-0a2ff7cc8ad48a86939a91bd3457f38e59e741a1.zip |
Bonding: add per-port priority for failover re-selection
Add per port priority support for bonding active slave re-selection during
failover. A higher number means higher priority in selection. The primary
slave still has the highest priority. This option also follows the
primary_reselect rules.
This option could only be configured via netlink.
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Acked-by: Jonathan Toppins <jtoppins@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/bonding.h')
-rw-r--r-- | include/net/bonding.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/bonding.h b/include/net/bonding.h index cb904d356e31..6e78d657aa05 100644 --- a/include/net/bonding.h +++ b/include/net/bonding.h @@ -178,6 +178,7 @@ struct slave { u32 speed; u16 queue_id; u8 perm_hwaddr[MAX_ADDR_LEN]; + int prio; struct ad_slave_info *ad_info; struct tlb_slave_info tlb_info; #ifdef CONFIG_NET_POLL_CONTROLLER |