Michal Kubeček 4e591b93d5 bonding: in balance-rr mode, set curr_active_slave only if it is up
If all slaves of a balance-rr bond with ARP monitor are enslaved
with down link state, bond keeps down state even after slaves
go up.

This is caused by bond_enslave() setting curr_active_slave to
first slave not taking into account its link state. As
bond_loadbalance_arp_mon() uses curr_active_slave to identify
whether slave's down->up transition should update bond's link
state, bond stays down even if slaves are up (until first slave
goes from up to down at least once).

Before commit f31c7937 "bonding: start slaves with link down for
ARP monitor", this was masked by slaves always starting in UP
state with ARP monitor (and MII monitor not relying on
curr_active_slave being NULL if there is no slave up).

Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
Signed-off-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-11-28 11:28:45 -05:00
..
2012-11-22 09:14:54 -10:00
2012-11-23 14:32:55 +01:00
2012-10-07 20:55:16 +09:00
2012-10-30 10:05:51 +01:00
2012-11-23 12:11:13 -10:00
2012-10-07 17:29:24 +09:00
2012-10-10 20:15:24 +09:00
2012-10-17 15:53:03 -05:00
2012-10-09 16:11:46 +09:00
2012-10-10 20:15:24 +09:00
2012-11-16 14:33:04 -08:00
2012-11-19 14:19:00 -05:00
2012-10-28 11:13:54 -07:00
2012-10-29 15:30:37 -04:00
2012-11-22 09:14:54 -10:00
2012-11-23 12:01:02 -10:00
2012-11-20 18:52:01 -10:00
2012-10-16 18:07:12 -07:00