]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
bonding: re-evaluate force_primary when the primary slave name changes
authorXiangning Yu <yuxiangning@gmail.com>
Thu, 7 Jun 2018 05:39:59 +0000 (13:39 +0800)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Fri, 9 Nov 2018 18:59:59 +0000 (16:59 -0200)
commit7a4994dec944eeca95a45d51ef03561241c6708b
tree354c04b9ec7bd9c30773a60af26fbac22fbe5e8b
parent60cd56df631542d888c34c381000e8c7863e6ceb
bonding: re-evaluate force_primary when the primary slave name changes

BugLink: http://bugs.launchpad.net/bugs/1800537
[ Upstream commit eb55bbf865d9979098c6a7a17cbdb41237ece951 ]

There is a timing issue under active-standy mode, when bond_enslave() is
called, bond->params.primary might not be initialized yet.

Any time the primary slave string changes, bond->force_primary should be
set to true to make sure the primary becomes the active slave.

Signed-off-by: Xiangning Yu <yuxiangning@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/bonding/bond_options.c