Searched refs:new_slave (Results 1 – 3 of 3) sorted by relevance
/linux/drivers/net/bonding/ |
H A D | bond_main.c | 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() [all …]
|
H A D | bond_alb.c | 1717 void bond_alb_handle_active_change(struct bonding *bond, struct slave *new_slave) in bond_alb_handle_active_change() argument 1723 if (curr_active == new_slave) in bond_alb_handle_active_change() 1733 rcu_assign_pointer(bond->curr_active_slave, new_slave); in bond_alb_handle_active_change() 1735 if (!new_slave || !bond_has_slaves(bond)) in bond_alb_handle_active_change() 1750 tlb_clear_slave(bond, new_slave, 1); in bond_alb_handle_active_change() 1759 bond_hw_addr_copy(tmp_addr, new_slave->dev->dev_addr, in bond_alb_handle_active_change() 1760 new_slave->dev->addr_len); in bond_alb_handle_active_change() 1766 dev_set_mac_address(new_slave->dev, (struct sockaddr *)&ss, in bond_alb_handle_active_change() 1769 dev_addr_set(new_slave->dev, tmp_addr); in bond_alb_handle_active_change() 1775 alb_swap_mac_addr(swap_slave, new_slave); in bond_alb_handle_active_change() [all …]
|
/linux/include/net/ |
H A D | bond_alb.h | 158 void bond_alb_handle_active_change(struct bonding *bond, struct slave *new_slave);
|