Lines Matching refs:new_slave

1530 static void bond_attach_slave(struct bonding *bond, struct slave *new_slave)  in bond_attach_slave()  argument
1533 new_slave->next = new_slave; in bond_attach_slave()
1534 new_slave->prev = new_slave; in bond_attach_slave()
1535 bond->first_slave = new_slave; in bond_attach_slave()
1537 new_slave->next = bond->first_slave; in bond_attach_slave()
1538 new_slave->prev = bond->first_slave->prev; in bond_attach_slave()
1539 new_slave->next->prev = new_slave; in bond_attach_slave()
1540 new_slave->prev->next = new_slave; in bond_attach_slave()
1594 struct slave *new_slave = NULL; in bond_enslave() local
1696 new_slave = kmalloc(sizeof(struct slave), GFP_KERNEL); in bond_enslave()
1697 if (!new_slave) { in bond_enslave()
1702 memset(new_slave, 0, sizeof(struct slave)); in bond_enslave()
1707 new_slave->original_flags = slave_dev->flags; in bond_enslave()
1714 memcpy(new_slave->perm_hwaddr, slave_dev->dev_addr, ETH_ALEN); in bond_enslave()
1746 new_slave->dev = slave_dev; in bond_enslave()
1753 res = bond_alb_init_slave(bond, new_slave); in bond_enslave()
1792 bond_attach_slave(bond, new_slave); in bond_enslave()
1794 new_slave->delay = 0; in bond_enslave()
1795 new_slave->link_failure_count = 0; in bond_enslave()
1835 new_slave->link = BOND_LINK_BACK; in bond_enslave()
1836 new_slave->delay = bond->params.updelay; in bond_enslave()
1840 new_slave->link = BOND_LINK_UP; in bond_enslave()
1842 new_slave->jiffies = jiffies; in bond_enslave()
1846 new_slave->link = BOND_LINK_DOWN; in bond_enslave()
1849 if (bond_update_speed_duplex(new_slave) && in bond_enslave()
1850 (new_slave->link != BOND_LINK_DOWN)) { in bond_enslave()
1854 new_slave->dev->name); in bond_enslave()
1866 if (strcmp(bond->params.primary, new_slave->dev->name) == 0) { in bond_enslave()
1867 bond->primary_slave = new_slave; in bond_enslave()
1882 (new_slave->link != BOND_LINK_DOWN)) { in bond_enslave()
1886 bond_change_active_slave(bond, new_slave); in bond_enslave()
1889 bond_set_slave_inactive_flags(new_slave); in bond_enslave()
1897 bond_set_slave_inactive_flags(new_slave); in bond_enslave()
1900 SLAVE_AD_INFO(new_slave).id = 1; in bond_enslave()
1907 SLAVE_AD_INFO(new_slave).id = in bond_enslave()
1908 SLAVE_AD_INFO(new_slave->prev).id + 1; in bond_enslave()
1911 bond_3ad_bind_slave(new_slave); in bond_enslave()
1915 new_slave->state = BOND_STATE_ACTIVE; in bond_enslave()
1917 (new_slave->link != BOND_LINK_DOWN)) { in bond_enslave()
1921 bond_change_active_slave(bond, new_slave); in bond_enslave()
1928 new_slave->state = BOND_STATE_ACTIVE; in bond_enslave()
1935 bond->curr_active_slave = new_slave; in bond_enslave()
1978 new_slave->state == BOND_STATE_ACTIVE ? "n active" : " backup", in bond_enslave()
1979 new_slave->link != BOND_LINK_DOWN ? "n up" : " down"); in bond_enslave()
1992 memcpy(addr.sa_data, new_slave->perm_hwaddr, ETH_ALEN); in bond_enslave()
1997 kfree(new_slave); in bond_enslave()