Lines Matching refs:old_active
719 struct slave *old_active) in bond_hw_addr_swap() argument
721 if (old_active) { in bond_hw_addr_swap()
723 dev_set_promiscuity(old_active->dev, -1); in bond_hw_addr_swap()
726 dev_set_allmulti(old_active->dev, -1); in bond_hw_addr_swap()
728 bond_hw_addr_flush(bond->dev, old_active->dev); in bond_hw_addr_swap()
795 struct slave *old_active) in bond_do_fail_over_mac() argument
818 if (!old_active) in bond_do_fail_over_mac()
819 old_active = bond_get_old_active(bond, new_active); in bond_do_fail_over_mac()
821 if (old_active) { in bond_do_fail_over_mac()
825 old_active->dev->dev_addr, in bond_do_fail_over_mac()
826 old_active->dev->addr_len); in bond_do_fail_over_mac()
842 if (!old_active) in bond_do_fail_over_mac()
847 ss.ss_family = old_active->dev->type; in bond_do_fail_over_mac()
849 rv = dev_set_mac_address(old_active->dev, in bond_do_fail_over_mac()
852 slave_err(bond->dev, old_active->dev, "Error %d setting MAC of old active slave\n", in bond_do_fail_over_mac()
967 struct slave *old_active; in bond_change_active_slave() local
971 old_active = rtnl_dereference(bond->curr_active_slave); in bond_change_active_slave()
973 if (old_active == new_active) in bond_change_active_slave()
977 if (old_active && bond->xs) in bond_change_active_slave()
1007 bond_hw_addr_swap(bond, new_active, old_active); in bond_change_active_slave()
1011 if (old_active) in bond_change_active_slave()
1012 bond_set_slave_inactive_flags(old_active, in bond_change_active_slave()
1022 if (old_active) in bond_change_active_slave()
1023 bond_set_slave_inactive_flags(old_active, in bond_change_active_slave()
1034 old_active); in bond_change_active_slave()