]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bonding: "primary_reselect" with "failure" is not working properly
authorVenkat Venkatsubra <venkat.x.venkatsubra@oracle.com>
Thu, 17 Nov 2016 15:59:00 +0000 (07:59 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Sat, 26 Nov 2016 12:36:50 +0000 (04:36 -0800)
commit620dc702a27f6714abba67d31af145dc659961d0
tree6a48ecec20aeacf86a95b8115e3179bbb6af9977
parent273c5e76ecc252e6fca4f5a6991eeafa1736f32d
bonding: "primary_reselect" with "failure" is not working properly

Upstream commit b5a983f3141239b5.

When "primary_reselect" is set to "failure", primary interface should
not become active until current active slave is down. But if we set first
member of bond device as a "primary" interface and "primary_reselect"
is set to "failure" then whenever primary interface's link gets back(up)
it becomes active slave even if current active slave is still up.

With this patch, "bond_find_best_slave" will not traverse members if
primary interface is not candidate for failover/reselection and current
active slave is still up.

Orabug: 24831739

Reviewed-by: John Haxby <john.haxby@oracle.com>
Signed-off-by: Mazhar Rana <mazhar.rana@cyberoam.com>
Signed-off-by: Jay Vosburgh <j.vosburgh@gmail.com>
Signed-off-by: Jay Vosburgh <jay.vosburgh@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Venkat Venkatsubra <venkat.x.venkatsubra@oracle.com>
drivers/net/bonding/bond_main.c