Bonding: add per-port priority for failover re-selection
authorHangbin Liu <liuhangbin@gmail.com>
Tue, 21 Jun 2022 07:49:19 +0000 (15:49 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Jun 2022 10:27:59 +0000 (11:27 +0100)
commit0a2ff7cc8ad48a86939a91bd3457f38e59e741a1
treee7ba839f3382905831d3f7b5eb56785af9f0a7ec
parentf2b3b28ce5237a4995a17d6f6aac9e05243d7a0b
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>
Documentation/networking/bonding.rst
drivers/net/bonding/bond_main.c
drivers/net/bonding/bond_netlink.c
drivers/net/bonding/bond_options.c
include/net/bond_options.h
include/net/bonding.h
include/uapi/linux/if_link.h
tools/include/uapi/linux/if_link.h