Lines Matching refs:old_active
882 struct slave *old_active) in bond_hw_addr_swap() argument
884 if (old_active) { in bond_hw_addr_swap()
886 dev_set_promiscuity(old_active->dev, -1); in bond_hw_addr_swap()
889 dev_set_allmulti(old_active->dev, -1); in bond_hw_addr_swap()
892 bond_hw_addr_flush(bond->dev, old_active->dev); in bond_hw_addr_swap()
961 struct slave *old_active) in bond_do_fail_over_mac() argument
984 if (!old_active) in bond_do_fail_over_mac()
985 old_active = bond_get_old_active(bond, new_active); in bond_do_fail_over_mac()
987 if (old_active) { in bond_do_fail_over_mac()
991 old_active->dev->dev_addr, in bond_do_fail_over_mac()
992 old_active->dev->addr_len); in bond_do_fail_over_mac()
1008 if (!old_active) in bond_do_fail_over_mac()
1013 ss.ss_family = old_active->dev->type; in bond_do_fail_over_mac()
1015 rv = dev_set_mac_address(old_active->dev, in bond_do_fail_over_mac()
1018 slave_err(bond->dev, old_active->dev, "Error %d setting MAC of old active slave\n", in bond_do_fail_over_mac()
1160 struct slave *old_active; in bond_change_active_slave() local
1164 old_active = rtnl_dereference(bond->curr_active_slave); in bond_change_active_slave()
1166 if (old_active == new_active) in bond_change_active_slave()
1198 bond_hw_addr_swap(bond, new_active, old_active); in bond_change_active_slave()
1202 if (old_active) in bond_change_active_slave()
1203 bond_set_slave_inactive_flags(old_active, in bond_change_active_slave()
1213 if (old_active) in bond_change_active_slave()
1214 bond_set_slave_inactive_flags(old_active, in bond_change_active_slave()
1225 old_active); in bond_change_active_slave()