Lines Matching refs:old_active
586 struct slave *old_active) in bond_hw_addr_swap() argument
588 if (old_active) { in bond_hw_addr_swap()
590 dev_set_promiscuity(old_active->dev, -1); in bond_hw_addr_swap()
593 dev_set_allmulti(old_active->dev, -1); in bond_hw_addr_swap()
595 bond_hw_addr_flush(bond->dev, old_active->dev); in bond_hw_addr_swap()
655 struct slave *old_active) in bond_do_fail_over_mac() argument
674 if (!old_active) in bond_do_fail_over_mac()
675 old_active = bond_get_old_active(bond, new_active); in bond_do_fail_over_mac()
677 if (old_active) { in bond_do_fail_over_mac()
680 old_active->dev->dev_addr); in bond_do_fail_over_mac()
694 if (!old_active) in bond_do_fail_over_mac()
698 saddr.sa_family = old_active->dev->type; in bond_do_fail_over_mac()
700 rv = dev_set_mac_address(old_active->dev, &saddr); in bond_do_fail_over_mac()
797 struct slave *old_active; in bond_change_active_slave() local
801 old_active = rtnl_dereference(bond->curr_active_slave); in bond_change_active_slave()
803 if (old_active == new_active) in bond_change_active_slave()
833 bond_hw_addr_swap(bond, new_active, old_active); in bond_change_active_slave()
837 if (old_active) in bond_change_active_slave()
838 bond_set_slave_inactive_flags(old_active, in bond_change_active_slave()
848 if (old_active) in bond_change_active_slave()
849 bond_set_slave_inactive_flags(old_active, in bond_change_active_slave()
860 old_active); in bond_change_active_slave()