Lines Matching refs:new_active

585 static void bond_hw_addr_swap(struct bonding *bond, struct slave *new_active,  in bond_hw_addr_swap()  argument
598 if (new_active) { in bond_hw_addr_swap()
601 dev_set_promiscuity(new_active->dev, 1); in bond_hw_addr_swap()
604 dev_set_allmulti(new_active->dev, 1); in bond_hw_addr_swap()
607 dev_uc_sync(new_active->dev, bond->dev); in bond_hw_addr_swap()
608 dev_mc_sync(new_active->dev, bond->dev); in bond_hw_addr_swap()
631 struct slave *new_active) in bond_get_old_active() argument
637 if (slave == new_active) in bond_get_old_active()
654 struct slave *new_active, in bond_do_fail_over_mac() argument
663 if (new_active) in bond_do_fail_over_mac()
664 bond_set_dev_addr(bond->dev, new_active->dev); in bond_do_fail_over_mac()
671 if (!new_active) in bond_do_fail_over_mac()
675 old_active = bond_get_old_active(bond, new_active); in bond_do_fail_over_mac()
678 ether_addr_copy(tmp_mac, new_active->dev->dev_addr); in bond_do_fail_over_mac()
681 saddr.sa_family = new_active->dev->type; in bond_do_fail_over_mac()
687 rv = dev_set_mac_address(new_active->dev, &saddr); in bond_do_fail_over_mac()
690 -rv, new_active->dev->name); in bond_do_fail_over_mac()
703 -rv, new_active->dev->name); in bond_do_fail_over_mac()
795 void bond_change_active_slave(struct bonding *bond, struct slave *new_active) in bond_change_active_slave() argument
803 if (old_active == new_active) in bond_change_active_slave()
806 if (new_active) { in bond_change_active_slave()
807 new_active->last_link_up = jiffies; in bond_change_active_slave()
809 if (new_active->link == BOND_LINK_BACK) { in bond_change_active_slave()
812 new_active->dev->name, in bond_change_active_slave()
813 (bond->params.updelay - new_active->delay) * bond->params.miimon); in bond_change_active_slave()
816 new_active->delay = 0; in bond_change_active_slave()
817 bond_set_slave_link_state(new_active, BOND_LINK_UP); in bond_change_active_slave()
820 bond_3ad_handle_link_change(new_active, BOND_LINK_UP); in bond_change_active_slave()
823 bond_alb_handle_link_change(bond, new_active, BOND_LINK_UP); in bond_change_active_slave()
827 new_active->dev->name); in bond_change_active_slave()
833 bond_hw_addr_swap(bond, new_active, old_active); in bond_change_active_slave()
836 bond_alb_handle_active_change(bond, new_active); in bond_change_active_slave()
840 if (new_active) in bond_change_active_slave()
841 bond_set_slave_active_flags(new_active, in bond_change_active_slave()
844 rcu_assign_pointer(bond->curr_active_slave, new_active); in bond_change_active_slave()
852 if (new_active) { in bond_change_active_slave()
855 bond_set_slave_active_flags(new_active, in bond_change_active_slave()
859 bond_do_fail_over_mac(bond, new_active, in bond_change_active_slave()
882 ((bond_uses_primary(bond) && new_active) || in bond_change_active_slave()