Lines Matching refs:new_active
577 static void bond_hw_addr_swap(struct bonding *bond, struct slave *new_active, in bond_hw_addr_swap() argument
590 if (new_active) { in bond_hw_addr_swap()
593 dev_set_promiscuity(new_active->dev, 1); in bond_hw_addr_swap()
596 dev_set_allmulti(new_active->dev, 1); in bond_hw_addr_swap()
599 dev_uc_sync(new_active->dev, bond->dev); in bond_hw_addr_swap()
600 dev_mc_sync(new_active->dev, bond->dev); in bond_hw_addr_swap()
623 struct slave *new_active) in bond_get_old_active() argument
629 if (slave == new_active) in bond_get_old_active()
646 struct slave *new_active, in bond_do_fail_over_mac() argument
655 if (new_active) in bond_do_fail_over_mac()
656 bond_set_dev_addr(bond->dev, new_active->dev); in bond_do_fail_over_mac()
663 if (!new_active) in bond_do_fail_over_mac()
667 old_active = bond_get_old_active(bond, new_active); in bond_do_fail_over_mac()
670 bond_hw_addr_copy(tmp_mac, new_active->dev->dev_addr, in bond_do_fail_over_mac()
671 new_active->dev->addr_len); in bond_do_fail_over_mac()
675 ss.ss_family = new_active->dev->type; in bond_do_fail_over_mac()
682 rv = dev_set_mac_address(new_active->dev, in bond_do_fail_over_mac()
686 -rv, new_active->dev->name); in bond_do_fail_over_mac()
694 new_active->dev->addr_len); in bond_do_fail_over_mac()
701 -rv, new_active->dev->name); in bond_do_fail_over_mac()
811 void bond_change_active_slave(struct bonding *bond, struct slave *new_active) in bond_change_active_slave() argument
819 if (old_active == new_active) in bond_change_active_slave()
822 if (new_active) { in bond_change_active_slave()
823 new_active->last_link_up = jiffies; in bond_change_active_slave()
825 if (new_active->link == BOND_LINK_BACK) { in bond_change_active_slave()
828 new_active->dev->name, in bond_change_active_slave()
829 (bond->params.updelay - new_active->delay) * bond->params.miimon); in bond_change_active_slave()
832 new_active->delay = 0; in bond_change_active_slave()
833 bond_set_slave_link_state(new_active, BOND_LINK_UP, in bond_change_active_slave()
837 bond_3ad_handle_link_change(new_active, BOND_LINK_UP); in bond_change_active_slave()
840 bond_alb_handle_link_change(bond, new_active, BOND_LINK_UP); in bond_change_active_slave()
844 new_active->dev->name); in bond_change_active_slave()
850 bond_hw_addr_swap(bond, new_active, old_active); in bond_change_active_slave()
853 bond_alb_handle_active_change(bond, new_active); in bond_change_active_slave()
857 if (new_active) in bond_change_active_slave()
858 bond_set_slave_active_flags(new_active, in bond_change_active_slave()
861 rcu_assign_pointer(bond->curr_active_slave, new_active); in bond_change_active_slave()
869 if (new_active) { in bond_change_active_slave()
872 bond_set_slave_active_flags(new_active, in bond_change_active_slave()
876 bond_do_fail_over_mac(bond, new_active, in bond_change_active_slave()
899 ((bond_uses_primary(bond) && new_active) || in bond_change_active_slave()