Lines Matching refs:new_active

994 static void bond_hw_addr_swap(struct bonding *bond, struct slave *new_active,  in bond_hw_addr_swap()  argument
1010 if (new_active) { in bond_hw_addr_swap()
1013 dev_set_promiscuity(new_active->dev, 1); in bond_hw_addr_swap()
1016 dev_set_allmulti(new_active->dev, 1); in bond_hw_addr_swap()
1020 dev_uc_sync(new_active->dev, bond->dev); in bond_hw_addr_swap()
1021 dev_mc_sync(new_active->dev, bond->dev); in bond_hw_addr_swap()
1025 bond_slave_ns_maddrs_del(bond, new_active); in bond_hw_addr_swap()
1054 struct slave *new_active) in bond_get_old_active() argument
1060 if (slave == new_active) in bond_get_old_active()
1077 struct slave *new_active, in bond_do_fail_over_mac() argument
1086 if (new_active) { in bond_do_fail_over_mac()
1087 rv = bond_set_dev_addr(bond->dev, new_active->dev); in bond_do_fail_over_mac()
1089 slave_err(bond->dev, new_active->dev, "Error %d setting bond MAC from slave\n", in bond_do_fail_over_mac()
1098 if (!new_active) in bond_do_fail_over_mac()
1102 old_active = bond_get_old_active(bond, new_active); in bond_do_fail_over_mac()
1105 bond_hw_addr_copy(tmp_mac, new_active->dev->dev_addr, in bond_do_fail_over_mac()
1106 new_active->dev->addr_len); in bond_do_fail_over_mac()
1110 ss.ss_family = new_active->dev->type; in bond_do_fail_over_mac()
1117 rv = dev_set_mac_address(new_active->dev, &ss, NULL); in bond_do_fail_over_mac()
1119 slave_err(bond->dev, new_active->dev, "Error %d setting MAC of new active slave\n", in bond_do_fail_over_mac()
1128 new_active->dev->addr_len); in bond_do_fail_over_mac()
1285 void bond_change_active_slave(struct bonding *bond, struct slave *new_active) in bond_change_active_slave() argument
1293 if (old_active == new_active) in bond_change_active_slave()
1300 if (new_active) { in bond_change_active_slave()
1301 new_active->last_link_up = jiffies; in bond_change_active_slave()
1303 if (new_active->link == BOND_LINK_BACK) { in bond_change_active_slave()
1305 slave_info(bond->dev, new_active->dev, "making interface the new active one %d ms earlier\n", in bond_change_active_slave()
1306 (bond->params.updelay - new_active->delay) * bond->params.miimon); in bond_change_active_slave()
1309 new_active->delay = 0; in bond_change_active_slave()
1310 bond_set_slave_link_state(new_active, BOND_LINK_UP, in bond_change_active_slave()
1314 bond_3ad_handle_link_change(new_active, BOND_LINK_UP); in bond_change_active_slave()
1317 bond_alb_handle_link_change(bond, new_active, BOND_LINK_UP); in bond_change_active_slave()
1320 slave_info(bond->dev, new_active->dev, "making interface the new active one\n"); in bond_change_active_slave()
1325 bond_hw_addr_swap(bond, new_active, old_active); in bond_change_active_slave()
1328 bond_alb_handle_active_change(bond, new_active); in bond_change_active_slave()
1332 if (new_active) in bond_change_active_slave()
1333 bond_set_slave_active_flags(new_active, in bond_change_active_slave()
1336 rcu_assign_pointer(bond->curr_active_slave, new_active); in bond_change_active_slave()
1344 if (new_active) { in bond_change_active_slave()
1347 bond_set_slave_active_flags(new_active, in bond_change_active_slave()
1351 bond_do_fail_over_mac(bond, new_active, in bond_change_active_slave()
1381 ((bond_uses_primary(bond) && new_active) || in bond_change_active_slave()