Lines Matching refs:slave
130 if (port->slave == NULL) { in __get_bond_by_port()
134 return bond_get_bond_by_slave(port->slave); in __get_bond_by_port()
162 struct slave *slave = port->slave; in __get_next_port() local
165 if ((bond == NULL) || (slave->next == bond->first_slave)) { in __get_next_port()
169 return &(SLAVE_AD_INFO(slave->next).port); in __get_next_port()
200 struct slave *slave = aggregator->slave; in __get_next_agg() local
201 struct bonding *bond = bond_get_bond_by_slave(slave); in __get_next_agg()
204 if ((bond == NULL) || (slave->next == bond->first_slave)) { in __get_next_agg()
208 return &(SLAVE_AD_INFO(slave->next).aggregator); in __get_next_agg()
229 bond_set_slave_inactive_flags(port->slave); in __disable_port()
239 struct slave *slave = port->slave; in __enable_port() local
241 if ((slave->link == BOND_LINK_UP) && IS_UP(slave->dev)) { in __enable_port()
242 bond_set_slave_active_flags(slave); in __enable_port()
253 return(port->slave->state == BOND_STATE_ACTIVE); in __port_is_enabled()
296 spin_lock_bh(&(SLAVE_AD_INFO(port->slave).rx_machine_lock)); in __get_rx_machine_lock()
306 spin_unlock_bh(&(SLAVE_AD_INFO(port->slave).rx_machine_lock)); in __release_rx_machine_lock()
322 struct slave *slave = port->slave; in __get_link_speed() local
329 if (slave->link != BOND_LINK_UP) { in __get_link_speed()
332 switch (slave->speed) { in __get_link_speed()
369 struct slave *slave = port->slave; in __get_duplex() local
375 if (slave->link != BOND_LINK_UP) { in __get_duplex()
378 switch (slave->duplex) { in __get_duplex()
401 spin_lock_init(&(SLAVE_AD_INFO(port->slave).rx_machine_lock)); in __initialize_port_locks()
825 struct slave *slave = port->slave; in ad_lacpdu_send() local
835 skb->dev = slave->dev; in ad_lacpdu_send()
846 memcpy(lacpdu_header->hdr.h_source, slave->perm_hwaddr, ETH_ALEN); in ad_lacpdu_send()
866 struct slave *slave = port->slave; in ad_marker_send() local
878 skb->dev = slave->dev; in ad_marker_send()
888 memcpy(marker_header->hdr.h_source, slave->perm_hwaddr, ETH_ALEN); in ad_marker_send()
1129 port->slave->dev->master->name, port->slave->dev->name); in ad_rx_machine()
1310 port->slave->dev->master->name, in ad_port_selection_logic()
1311 port->actor_port_number, port->slave->dev->name, in ad_port_selection_logic()
1382 port->slave->dev->master->name, in ad_port_selection_logic()
1383 port->actor_port_number, port->slave->dev->name); in ad_port_selection_logic()
1460 curr->slave->dev->master->name, in ad_agg_selection_test()
1544 best->lag_ports, best->slave, in ad_agg_selection_logic()
1545 best->slave ? best->slave->dev->name : "NULL"); in ad_agg_selection_logic()
1562 best->slave->dev->master->name); in ad_agg_selection_logic()
1598 if (origin->slave) { in ad_agg_selection_logic()
1601 bond = bond_get_bond_by_slave(origin->slave); in ad_agg_selection_logic()
1642 aggregator->slave = NULL; in ad_initialize_agg()
1703 port->slave = NULL; in ad_initialize_port()
1874 int bond_3ad_bind_slave(struct slave *slave) in bond_3ad_bind_slave() argument
1876 struct bonding *bond = bond_get_bond_by_slave(slave); in bond_3ad_bind_slave()
1882 slave->dev->master->name, slave->dev->name); in bond_3ad_bind_slave()
1887 if (SLAVE_AD_INFO(slave).port.slave != slave) { in bond_3ad_bind_slave()
1890 port = &(SLAVE_AD_INFO(slave).port); in bond_3ad_bind_slave()
1894 port->slave = slave; in bond_3ad_bind_slave()
1895 port->actor_port_number = SLAVE_AD_INFO(slave).id; in bond_3ad_bind_slave()
1921 aggregator = &(SLAVE_AD_INFO(slave).aggregator); in bond_3ad_bind_slave()
1927 aggregator->slave = slave; in bond_3ad_bind_slave()
1943 void bond_3ad_unbind_slave(struct slave *slave) in bond_3ad_unbind_slave() argument
1950 aggregator = &(SLAVE_AD_INFO(slave).aggregator); in bond_3ad_unbind_slave()
1953 port = &(SLAVE_AD_INFO(slave).port); in bond_3ad_unbind_slave()
1956 if (!port->slave) { in bond_3ad_unbind_slave()
1959 slave->dev->master->name, slave->dev->name); in bond_3ad_unbind_slave()
1991 aggregator->slave->dev->master->name); in bond_3ad_unbind_slave()
2023 slave->dev->master->name); in bond_3ad_unbind_slave()
2031 slave->dev->master->name); in bond_3ad_unbind_slave()
2058 slave->dev->master->name); in bond_3ad_unbind_slave()
2067 port->slave=NULL; in bond_3ad_unbind_slave()
2105 if (!port->slave) { in bond_3ad_state_machine_handler()
2119 if (!port->slave) { in bond_3ad_state_machine_handler()
2153 static void bond_3ad_rx_indication(struct lacpdu *lacpdu, struct slave *slave, u16 length) in bond_3ad_rx_indication() argument
2159 port = &(SLAVE_AD_INFO(slave).port); in bond_3ad_rx_indication()
2161 if (!port->slave) { in bond_3ad_rx_indication()
2163 "uninitialized\n", slave->dev->name, slave->dev->master->name); in bond_3ad_rx_indication()
2200 void bond_3ad_adapter_speed_changed(struct slave *slave) in bond_3ad_adapter_speed_changed() argument
2204 port = &(SLAVE_AD_INFO(slave).port); in bond_3ad_adapter_speed_changed()
2207 if (!port->slave) { in bond_3ad_adapter_speed_changed()
2210 slave->dev->master->name, slave->dev->name); in bond_3ad_adapter_speed_changed()
2228 void bond_3ad_adapter_duplex_changed(struct slave *slave) in bond_3ad_adapter_duplex_changed() argument
2232 port=&(SLAVE_AD_INFO(slave).port); in bond_3ad_adapter_duplex_changed()
2235 if (!port->slave) { in bond_3ad_adapter_duplex_changed()
2238 slave->dev->master->name, slave->dev->name); in bond_3ad_adapter_duplex_changed()
2257 void bond_3ad_handle_link_change(struct slave *slave, char link) in bond_3ad_handle_link_change() argument
2261 port = &(SLAVE_AD_INFO(slave).port); in bond_3ad_handle_link_change()
2264 if (!port->slave) { in bond_3ad_handle_link_change()
2267 slave->dev->master->name, slave->dev->name); in bond_3ad_handle_link_change()
2352 struct slave *slave, *start_at; in bond_3ad_xmit_xor() local
2389 bond_for_each_slave(bond, slave, i) { in bond_3ad_xmit_xor()
2390 struct aggregator *agg = SLAVE_AD_INFO(slave).port.aggregator; in bond_3ad_xmit_xor()
2406 start_at = slave; in bond_3ad_xmit_xor()
2408 bond_for_each_slave_from(bond, slave, i, start_at) { in bond_3ad_xmit_xor()
2410 struct aggregator *agg = SLAVE_AD_INFO(slave).port.aggregator; in bond_3ad_xmit_xor()
2416 if (SLAVE_IS_OK(slave) && agg && (slave_agg_id == agg_id)) { in bond_3ad_xmit_xor()
2417 res = bond_dev_queue_xmit(bond, skb, slave->dev); in bond_3ad_xmit_xor()
2434 struct slave *slave = NULL; in bond_3ad_lacpdu_recv() local
2444 slave = bond_get_slave_by_dev((struct bonding *)netdev_priv(dev), in bond_3ad_lacpdu_recv()
2446 if (!slave) in bond_3ad_lacpdu_recv()
2449 bond_3ad_rx_indication((struct lacpdu *) skb->data, slave, skb->len); in bond_3ad_lacpdu_recv()