Lines Matching refs:new_slave
1959 struct slave *new_slave = NULL, *prev_slave; in bond_enslave() local
2093 new_slave = bond_alloc_slave(bond, slave_dev); in bond_enslave()
2094 if (!new_slave) { in bond_enslave()
2102 new_slave->queue_id = 0; in bond_enslave()
2105 new_slave->original_mtu = slave_dev->mtu; in bond_enslave()
2116 bond_hw_addr_copy(new_slave->perm_hwaddr, slave_dev->dev_addr, in bond_enslave()
2146 dev_get_stats(new_slave->dev, &new_slave->slave_stats); in bond_enslave()
2152 res = bond_alb_init_slave(bond, new_slave); in bond_enslave()
2165 new_slave->delay = 0; in bond_enslave()
2166 new_slave->link_failure_count = 0; in bond_enslave()
2168 if (bond_update_speed_duplex(new_slave) && in bond_enslave()
2170 new_slave->link = BOND_LINK_DOWN; in bond_enslave()
2172 new_slave->last_rx = jiffies - in bond_enslave()
2175 new_slave->target_last_arp_rx[i] = new_slave->last_rx; in bond_enslave()
2177 new_slave->last_tx = new_slave->last_rx; in bond_enslave()
2199 new_slave->link = BOND_LINK_NOCHANGE; in bond_enslave()
2203 bond_set_slave_link_state(new_slave, in bond_enslave()
2206 new_slave->delay = bond->params.updelay; in bond_enslave()
2208 bond_set_slave_link_state(new_slave, in bond_enslave()
2213 bond_set_slave_link_state(new_slave, BOND_LINK_DOWN, in bond_enslave()
2217 bond_set_slave_link_state(new_slave, in bond_enslave()
2222 bond_set_slave_link_state(new_slave, BOND_LINK_UP, in bond_enslave()
2226 if (new_slave->link != BOND_LINK_DOWN) in bond_enslave()
2227 new_slave->last_link_up = jiffies; in bond_enslave()
2229 new_slave->link == BOND_LINK_DOWN ? "DOWN" : in bond_enslave()
2230 (new_slave->link == BOND_LINK_UP ? "UP" : "BACK")); in bond_enslave()
2234 if (strcmp(bond->params.primary, new_slave->dev->name) == 0) { in bond_enslave()
2235 rcu_assign_pointer(bond->primary_slave, new_slave); in bond_enslave()
2242 bond_set_slave_inactive_flags(new_slave, in bond_enslave()
2250 bond_set_slave_inactive_flags(new_slave, BOND_SLAVE_NOTIFY_NOW); in bond_enslave()
2253 SLAVE_AD_INFO(new_slave)->id = 1; in bond_enslave()
2259 SLAVE_AD_INFO(new_slave)->id = in bond_enslave()
2263 bond_3ad_bind_slave(new_slave); in bond_enslave()
2267 bond_set_active_slave(new_slave); in bond_enslave()
2268 bond_set_slave_inactive_flags(new_slave, BOND_SLAVE_NOTIFY_NOW); in bond_enslave()
2274 bond_set_active_slave(new_slave); in bond_enslave()
2281 new_slave->link == BOND_LINK_UP) in bond_enslave()
2282 rcu_assign_pointer(bond->curr_active_slave, new_slave); in bond_enslave()
2289 if (slave_enable_netpoll(new_slave)) { in bond_enslave()
2301 new_slave); in bond_enslave()
2307 res = bond_master_upper_dev_link(bond, new_slave, extack); in bond_enslave()
2313 bond_lower_state_changed(new_slave); in bond_enslave()
2315 res = bond_sysfs_slave_add(new_slave); in bond_enslave()
2360 bond_slave_ns_maddrs_add(bond, new_slave); in bond_enslave()
2407 bond_is_active_slave(new_slave) ? "an active" : "a backup", in bond_enslave()
2408 new_slave->link != BOND_LINK_DOWN ? "an up" : "a down"); in bond_enslave()
2411 bond_queue_slave_event(new_slave); in bond_enslave()
2416 bond_sysfs_slave_del(new_slave); in bond_enslave()
2419 bond_upper_dev_unlink(bond, new_slave); in bond_enslave()
2426 if (rcu_access_pointer(bond->primary_slave) == new_slave) in bond_enslave()
2428 if (rcu_access_pointer(bond->curr_active_slave) == new_slave) { in bond_enslave()
2436 slave_disable_netpoll(new_slave); in bond_enslave()
2451 bond_hw_addr_copy(ss.__data, new_slave->perm_hwaddr, in bond_enslave()
2452 new_slave->dev->addr_len); in bond_enslave()
2458 dev_set_mtu(slave_dev, new_slave->original_mtu); in bond_enslave()
2461 kobject_put(&new_slave->kobj); in bond_enslave()
3822 struct slave *slave, *before = NULL, *new_slave = NULL, in bond_ab_arp_probe() local
3854 if (found && !new_slave && bond_slave_is_up(slave)) in bond_ab_arp_probe()
3855 new_slave = slave; in bond_ab_arp_probe()
3878 if (!new_slave && before) in bond_ab_arp_probe()
3879 new_slave = before; in bond_ab_arp_probe()
3881 if (!new_slave) in bond_ab_arp_probe()
3884 bond_set_slave_link_state(new_slave, BOND_LINK_BACK, in bond_ab_arp_probe()
3886 bond_set_slave_active_flags(new_slave, BOND_SLAVE_NOTIFY_LATER); in bond_ab_arp_probe()
3887 bond_send_validate(bond, new_slave); in bond_ab_arp_probe()
3888 new_slave->last_link_up = jiffies; in bond_ab_arp_probe()
3889 rcu_assign_pointer(bond->current_arp_slave, new_slave); in bond_ab_arp_probe()