Lines Matching refs:old_active
842 struct slave *old_active) in bond_hw_addr_swap() argument
844 if (old_active) { in bond_hw_addr_swap()
846 dev_set_promiscuity(old_active->dev, -1); in bond_hw_addr_swap()
849 dev_set_allmulti(old_active->dev, -1); in bond_hw_addr_swap()
852 bond_hw_addr_flush(bond->dev, old_active->dev); in bond_hw_addr_swap()
921 struct slave *old_active) in bond_do_fail_over_mac() argument
944 if (!old_active) in bond_do_fail_over_mac()
945 old_active = bond_get_old_active(bond, new_active); in bond_do_fail_over_mac()
947 if (old_active) { in bond_do_fail_over_mac()
951 old_active->dev->dev_addr, in bond_do_fail_over_mac()
952 old_active->dev->addr_len); in bond_do_fail_over_mac()
968 if (!old_active) in bond_do_fail_over_mac()
973 ss.ss_family = old_active->dev->type; in bond_do_fail_over_mac()
975 rv = dev_set_mac_address(old_active->dev, in bond_do_fail_over_mac()
978 slave_err(bond->dev, old_active->dev, "Error %d setting MAC of old active slave\n", in bond_do_fail_over_mac()
1093 struct slave *old_active; in bond_change_active_slave() local
1097 old_active = rtnl_dereference(bond->curr_active_slave); in bond_change_active_slave()
1099 if (old_active == new_active) in bond_change_active_slave()
1132 bond_hw_addr_swap(bond, new_active, old_active); in bond_change_active_slave()
1136 if (old_active) in bond_change_active_slave()
1137 bond_set_slave_inactive_flags(old_active, in bond_change_active_slave()
1147 if (old_active) in bond_change_active_slave()
1148 bond_set_slave_inactive_flags(old_active, in bond_change_active_slave()
1159 old_active); in bond_change_active_slave()