Lines Matching defs:bond_info

126 	struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
137 bond_info->tx_hashtbl = new_hashtbl;
140 tlb_init_table_entry(&bond_info->tx_hashtbl[i], 0);
150 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
154 kfree(bond_info->tx_hashtbl);
155 bond_info->tx_hashtbl = NULL;
193 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
197 hash_table = bond_info->tx_hashtbl;
249 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
256 client_info = &(bond_info->rx_hashtbl[hash_index]);
265 bond_info->rx_ntt = 1;
307 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
322 if (slave == bond_info->rx_slave)
332 bond_info->rx_slave = rx_slave;
381 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
388 rx_hash_table = bond_info->rx_hashtbl;
389 index = bond_info->rx_hashtbl_used_head;
398 bond_info->rx_hashtbl[index].ntt = 1;
399 bond_info->rx_ntt = 1;
407 bond_info->rlb_update_retry_counter =
460 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
466 hash_index = bond_info->rx_hashtbl_used_head;
469 client_info = &(bond_info->rx_hashtbl[hash_index]);
472 if (bond_info->rlb_update_retry_counter == 0)
480 bond_info->rlb_update_delay_counter = RLB_UPDATE_DELAY;
488 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
495 hash_index = bond_info->rx_hashtbl_used_head;
498 client_info = &(bond_info->rx_hashtbl[hash_index]);
509 bond_info->rx_ntt = 1;
511 bond_info->rlb_update_retry_counter = RLB_UPDATE_RETRY;
520 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
526 hash_index = bond_info->rx_hashtbl_used_head;
529 client_info = &(bond_info->rx_hashtbl[hash_index]);
544 bond_info->rx_ntt = 1;
555 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
565 client_info = &(bond_info->rx_hashtbl[hash_index]);
630 u32 prev_tbl_head = bond_info->rx_hashtbl_used_head;
631 bond_info->rx_hashtbl_used_head = hash_index;
634 bond_info->rx_hashtbl[prev_tbl_head].used_prev =
701 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
710 hash_index = bond_info->rx_hashtbl_used_head;
713 client_info = &(bond_info->rx_hashtbl[hash_index]);
726 bond_info->rx_ntt = 1;
755 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
756 u32 next_index = bond_info->rx_hashtbl[index].used_next;
757 u32 prev_index = bond_info->rx_hashtbl[index].used_prev;
759 if (index == bond_info->rx_hashtbl_used_head)
760 bond_info->rx_hashtbl_used_head = next_index;
762 bond_info->rx_hashtbl[prev_index].used_next = next_index;
764 bond_info->rx_hashtbl[next_index].used_prev = prev_index;
770 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
771 u32 next_index = bond_info->rx_hashtbl[index].src_next;
772 u32 prev_index = bond_info->rx_hashtbl[index].src_prev;
774 bond_info->rx_hashtbl[index].src_next = RLB_NULL_INDEX;
775 bond_info->rx_hashtbl[index].src_prev = RLB_NULL_INDEX;
778 bond_info->rx_hashtbl[next_index].src_prev = prev_index;
784 if (bond_info->rx_hashtbl[prev_index].src_first == index)
785 bond_info->rx_hashtbl[prev_index].src_first = next_index;
787 bond_info->rx_hashtbl[prev_index].src_next = next_index;
793 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
794 struct rlb_client_info *entry = &(bond_info->rx_hashtbl[index]);
807 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
810 bond_info->rx_hashtbl[ip_dst_hash].src_prev = ip_src_hash;
811 next = bond_info->rx_hashtbl[ip_src_hash].src_first;
812 bond_info->rx_hashtbl[ip_dst_hash].src_next = next;
814 bond_info->rx_hashtbl[next].src_prev = ip_dst_hash;
815 bond_info->rx_hashtbl[ip_src_hash].src_first = ip_dst_hash;
823 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
829 index = bond_info->rx_hashtbl[ip_src_hash].src_first;
831 struct rlb_client_info *entry = &(bond_info->rx_hashtbl[index]);
843 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
854 bond_info->rx_hashtbl = new_hashtbl;
856 bond_info->rx_hashtbl_used_head = RLB_NULL_INDEX;
859 rlb_init_table_entry(bond_info->rx_hashtbl + i);
871 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
875 kfree(bond_info->rx_hashtbl);
876 bond_info->rx_hashtbl = NULL;
877 bond_info->rx_hashtbl_used_head = RLB_NULL_INDEX;
884 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
889 curr_index = bond_info->rx_hashtbl_used_head;
891 struct rlb_client_info *curr = &(bond_info->rx_hashtbl[curr_index]);
892 u32 next_index = bond_info->rx_hashtbl[curr_index].used_next;
1298 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
1302 if (bond_info->rlb_enabled)
1309 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
1316 bond_info->unbalanced_load += skb->len;
1388 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
1486 if (bond_info->rlb_enabled)
1530 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
1535 atomic_set(&bond_info->tx_rebalance_counter, 0);
1536 bond_info->lp_counter = 0;
1542 atomic_inc(&bond_info->tx_rebalance_counter);
1543 bond_info->lp_counter++;
1546 if (bond_info->lp_counter >= BOND_ALB_LP_TICKS(bond)) {
1556 bond_info->rlb_enabled);
1560 bond_info->lp_counter = 0;
1564 if (atomic_read(&bond_info->tx_rebalance_counter) >= BOND_TLB_REBALANCE_TICKS) {
1569 bond_info->unbalanced_load /
1571 bond_info->unbalanced_load = 0;
1574 atomic_set(&bond_info->tx_rebalance_counter, 0);
1577 if (bond_info->rlb_enabled) {
1578 if (bond_info->primary_is_promisc &&
1579 (++bond_info->rlb_promisc_timeout_counter >= RLB_PROMISC_TIMEOUT)) {
1588 bond_info->rlb_promisc_timeout_counter = 0;
1596 bond_info->primary_is_promisc = 0;
1602 if (bond_info->rlb_rebalance) {
1603 bond_info->rlb_rebalance = 0;
1608 if (bond_info->rx_ntt) {
1609 if (bond_info->rlb_update_delay_counter) {
1610 --bond_info->rlb_update_delay_counter;
1613 if (bond_info->rlb_update_retry_counter)
1614 --bond_info->rlb_update_retry_counter;
1616 bond_info->rx_ntt = 0;
1674 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
1682 atomic_set(&bond_info->tx_rebalance_counter,