Lines Matching refs:old_active
578 struct slave *old_active) in bond_hw_addr_swap() argument
580 if (old_active) { in bond_hw_addr_swap()
582 dev_set_promiscuity(old_active->dev, -1); in bond_hw_addr_swap()
585 dev_set_allmulti(old_active->dev, -1); in bond_hw_addr_swap()
587 bond_hw_addr_flush(bond->dev, old_active->dev); in bond_hw_addr_swap()
647 struct slave *old_active) in bond_do_fail_over_mac() argument
666 if (!old_active) in bond_do_fail_over_mac()
667 old_active = bond_get_old_active(bond, new_active); in bond_do_fail_over_mac()
669 if (old_active) { in bond_do_fail_over_mac()
673 old_active->dev->dev_addr, in bond_do_fail_over_mac()
674 old_active->dev->addr_len); in bond_do_fail_over_mac()
690 if (!old_active) in bond_do_fail_over_mac()
695 ss.ss_family = old_active->dev->type; in bond_do_fail_over_mac()
697 rv = dev_set_mac_address(old_active->dev, in bond_do_fail_over_mac()
813 struct slave *old_active; in bond_change_active_slave() local
817 old_active = rtnl_dereference(bond->curr_active_slave); in bond_change_active_slave()
819 if (old_active == new_active) in bond_change_active_slave()
850 bond_hw_addr_swap(bond, new_active, old_active); in bond_change_active_slave()
854 if (old_active) in bond_change_active_slave()
855 bond_set_slave_inactive_flags(old_active, in bond_change_active_slave()
865 if (old_active) in bond_change_active_slave()
866 bond_set_slave_inactive_flags(old_active, in bond_change_active_slave()
877 old_active); in bond_change_active_slave()