Lines Matching refs:old_active
884 struct slave *old_active) in bond_hw_addr_swap() argument
886 if (old_active) { in bond_hw_addr_swap()
888 dev_set_promiscuity(old_active->dev, -1); in bond_hw_addr_swap()
891 dev_set_allmulti(old_active->dev, -1); in bond_hw_addr_swap()
894 bond_hw_addr_flush(bond->dev, old_active->dev); in bond_hw_addr_swap()
963 struct slave *old_active) in bond_do_fail_over_mac() argument
986 if (!old_active) in bond_do_fail_over_mac()
987 old_active = bond_get_old_active(bond, new_active); in bond_do_fail_over_mac()
989 if (old_active) { in bond_do_fail_over_mac()
993 old_active->dev->dev_addr, in bond_do_fail_over_mac()
994 old_active->dev->addr_len); in bond_do_fail_over_mac()
1010 if (!old_active) in bond_do_fail_over_mac()
1015 ss.ss_family = old_active->dev->type; in bond_do_fail_over_mac()
1017 rv = dev_set_mac_address(old_active->dev, in bond_do_fail_over_mac()
1020 slave_err(bond->dev, old_active->dev, "Error %d setting MAC of old active slave\n", in bond_do_fail_over_mac()
1162 struct slave *old_active; in bond_change_active_slave() local
1166 old_active = rtnl_dereference(bond->curr_active_slave); in bond_change_active_slave()
1168 if (old_active == new_active) in bond_change_active_slave()
1200 bond_hw_addr_swap(bond, new_active, old_active); in bond_change_active_slave()
1204 if (old_active) in bond_change_active_slave()
1205 bond_set_slave_inactive_flags(old_active, in bond_change_active_slave()
1215 if (old_active) in bond_change_active_slave()
1216 bond_set_slave_inactive_flags(old_active, in bond_change_active_slave()
1227 old_active); in bond_change_active_slave()