Lines Matching defs:bond_info
197 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
202 spin_lock_init(&(bond_info->tx_hashtbl_lock));
212 bond_info->tx_hashtbl = new_hashtbl;
215 tlb_init_table_entry(&bond_info->tx_hashtbl[i], 1);
226 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
230 kfree(bond_info->tx_hashtbl);
231 bond_info->tx_hashtbl = NULL;
270 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
276 hash_table = bond_info->tx_hashtbl;
325 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
332 client_info = &(bond_info->rx_hashtbl[hash_index]);
341 bond_info->rx_ntt = 1;
391 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
395 if (bond_info->next_rx_slave) {
396 start_at = bond_info->next_rx_slave;
414 bond_info->next_rx_slave = rx_slave->next;
449 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
456 rx_hash_table = bond_info->rx_hashtbl;
457 index = bond_info->rx_hashtbl_head;
467 bond_info->rx_hashtbl[index].ntt = 1;
468 bond_info->rx_ntt = 1;
476 bond_info->rlb_update_retry_counter =
538 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
544 hash_index = bond_info->rx_hashtbl_head;
546 client_info = &(bond_info->rx_hashtbl[hash_index]);
549 if (bond_info->rlb_update_retry_counter == 0) {
558 bond_info->rlb_update_delay_counter = RLB_UPDATE_DELAY;
566 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
573 hash_index = bond_info->rx_hashtbl_head;
575 client_info = &(bond_info->rx_hashtbl[hash_index]);
586 bond_info->rx_ntt = 1;
588 bond_info->rlb_update_retry_counter = RLB_UPDATE_RETRY;
597 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
603 hash_index = bond_info->rx_hashtbl_head;
605 client_info = &(bond_info->rx_hashtbl[hash_index]);
621 bond_info->rx_ntt = 1;
631 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
640 client_info = &(bond_info->rx_hashtbl[hash_index]);
694 u32 prev_tbl_head = bond_info->rx_hashtbl_head;
695 bond_info->rx_hashtbl_head = hash_index;
698 bond_info->rx_hashtbl[prev_tbl_head].prev =
756 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
765 hash_index = bond_info->rx_hashtbl_head;
767 client_info = &(bond_info->rx_hashtbl[hash_index]);
778 bond_info->rx_ntt = 1;
793 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
799 spin_lock_init(&(bond_info->rx_hashtbl_lock));
809 bond_info->rx_hashtbl = new_hashtbl;
811 bond_info->rx_hashtbl_head = RLB_NULL_INDEX;
814 rlb_init_table_entry(bond_info->rx_hashtbl + i);
832 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
834 dev_remove_pack(&(bond_info->rlb_pkt_type));
838 kfree(bond_info->rx_hashtbl);
839 bond_info->rx_hashtbl = NULL;
840 bond_info->rx_hashtbl_head = RLB_NULL_INDEX;
847 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
852 curr_index = bond_info->rx_hashtbl_head;
854 struct rlb_client_info *curr = &(bond_info->rx_hashtbl[curr_index]);
855 u32 next_index = bond_info->rx_hashtbl[curr_index].next;
856 u32 prev_index = bond_info->rx_hashtbl[curr_index].prev;
859 if (curr_index == bond_info->rx_hashtbl_head) {
860 bond_info->rx_hashtbl_head = next_index;
863 bond_info->rx_hashtbl[prev_index].next = next_index;
866 bond_info->rx_hashtbl[next_index].prev = prev_index;
1258 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
1262 if (bond_info->rlb_enabled) {
1271 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
1359 if (bond_info->rlb_enabled) {
1376 bond_info->unbalanced_load += skb->len;
1407 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
1418 bond_info->tx_rebalance_counter = 0;
1419 bond_info->lp_counter = 0;
1423 bond_info->tx_rebalance_counter++;
1424 bond_info->lp_counter++;
1427 if (bond_info->lp_counter >= BOND_ALB_LP_TICKS) {
1441 bond_info->lp_counter = 0;
1445 if (bond_info->tx_rebalance_counter >= BOND_TLB_REBALANCE_TICKS) {
1453 bond_info->unbalanced_load /
1455 bond_info->unbalanced_load = 0;
1461 bond_info->tx_rebalance_counter = 0;
1465 if (bond_info->rlb_enabled) {
1466 if (bond_info->primary_is_promisc &&
1467 (++bond_info->rlb_promisc_timeout_counter >= RLB_PROMISC_TIMEOUT)) {
1476 bond_info->rlb_promisc_timeout_counter = 0;
1483 bond_info->primary_is_promisc = 0;
1489 if (bond_info->rlb_rebalance) {
1490 bond_info->rlb_rebalance = 0;
1495 if (bond_info->rx_ntt) {
1496 if (bond_info->rlb_update_delay_counter) {
1497 --bond_info->rlb_update_delay_counter;
1500 if (bond_info->rlb_update_retry_counter) {
1501 --bond_info->rlb_update_retry_counter;
1503 bond_info->rx_ntt = 0;
1576 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
1585 bond_info->tx_rebalance_counter = BOND_TLB_REBALANCE_TICKS;