Lines Matching defs:bond_info

155 	struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
166 bond_info->tx_hashtbl = new_hashtbl;
169 tlb_init_table_entry(&bond_info->tx_hashtbl[i], 0);
179 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
183 kfree(bond_info->tx_hashtbl);
184 bond_info->tx_hashtbl = NULL;
222 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
226 hash_table = bond_info->tx_hashtbl;
278 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
285 client_info = &(bond_info->rx_hashtbl[hash_index]);
294 bond_info->rx_ntt = 1;
336 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
351 if (slave == bond_info->rx_slave)
361 bond_info->rx_slave = rx_slave;
410 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
417 rx_hash_table = bond_info->rx_hashtbl;
418 index = bond_info->rx_hashtbl_used_head;
428 bond_info->rx_hashtbl[index].ntt = 1;
429 bond_info->rx_ntt = 1;
437 bond_info->rlb_update_retry_counter =
493 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
499 hash_index = bond_info->rx_hashtbl_used_head;
502 client_info = &(bond_info->rx_hashtbl[hash_index]);
505 if (bond_info->rlb_update_retry_counter == 0)
513 bond_info->rlb_update_delay_counter = RLB_UPDATE_DELAY;
521 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
528 hash_index = bond_info->rx_hashtbl_used_head;
531 client_info = &(bond_info->rx_hashtbl[hash_index]);
542 bond_info->rx_ntt = 1;
544 bond_info->rlb_update_retry_counter = RLB_UPDATE_RETRY;
553 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
559 hash_index = bond_info->rx_hashtbl_used_head;
562 client_info = &(bond_info->rx_hashtbl[hash_index]);
577 bond_info->rx_ntt = 1;
586 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
597 client_info = &(bond_info->rx_hashtbl[hash_index]);
662 u32 prev_tbl_head = bond_info->rx_hashtbl_used_head;
663 bond_info->rx_hashtbl_used_head = hash_index;
666 bond_info->rx_hashtbl[prev_tbl_head].used_prev =
726 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
735 hash_index = bond_info->rx_hashtbl_used_head;
738 client_info = &(bond_info->rx_hashtbl[hash_index]);
749 bond_info->rx_ntt = 1;
778 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
779 u32 next_index = bond_info->rx_hashtbl[index].used_next;
780 u32 prev_index = bond_info->rx_hashtbl[index].used_prev;
782 if (index == bond_info->rx_hashtbl_used_head)
783 bond_info->rx_hashtbl_used_head = next_index;
785 bond_info->rx_hashtbl[prev_index].used_next = next_index;
787 bond_info->rx_hashtbl[next_index].used_prev = prev_index;
793 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
794 u32 next_index = bond_info->rx_hashtbl[index].src_next;
795 u32 prev_index = bond_info->rx_hashtbl[index].src_prev;
797 bond_info->rx_hashtbl[index].src_next = RLB_NULL_INDEX;
798 bond_info->rx_hashtbl[index].src_prev = RLB_NULL_INDEX;
801 bond_info->rx_hashtbl[next_index].src_prev = prev_index;
807 if (bond_info->rx_hashtbl[prev_index].src_first == index)
808 bond_info->rx_hashtbl[prev_index].src_first = next_index;
810 bond_info->rx_hashtbl[prev_index].src_next = next_index;
816 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
817 struct rlb_client_info *entry = &(bond_info->rx_hashtbl[index]);
830 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
833 bond_info->rx_hashtbl[ip_dst_hash].src_prev = ip_src_hash;
834 next = bond_info->rx_hashtbl[ip_src_hash].src_first;
835 bond_info->rx_hashtbl[ip_dst_hash].src_next = next;
837 bond_info->rx_hashtbl[next].src_prev = ip_dst_hash;
838 bond_info->rx_hashtbl[ip_src_hash].src_first = ip_dst_hash;
846 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
852 index = bond_info->rx_hashtbl[ip_src_hash].src_first;
854 struct rlb_client_info *entry = &(bond_info->rx_hashtbl[index]);
866 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
877 bond_info->rx_hashtbl = new_hashtbl;
879 bond_info->rx_hashtbl_used_head = RLB_NULL_INDEX;
882 rlb_init_table_entry(bond_info->rx_hashtbl + i);
894 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
898 kfree(bond_info->rx_hashtbl);
899 bond_info->rx_hashtbl = NULL;
900 bond_info->rx_hashtbl_used_head = RLB_NULL_INDEX;
907 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
912 curr_index = bond_info->rx_hashtbl_used_head;
914 struct rlb_client_info *curr = &(bond_info->rx_hashtbl[curr_index]);
915 u32 next_index = bond_info->rx_hashtbl[curr_index].used_next;
1291 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
1295 if (bond_info->rlb_enabled)
1302 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
1309 bond_info->unbalanced_load += skb->len;
1376 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
1453 if (bond_info->rlb_enabled)
1473 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
1478 bond_info->tx_rebalance_counter = 0;
1479 bond_info->lp_counter = 0;
1485 bond_info->tx_rebalance_counter++;
1486 bond_info->lp_counter++;
1489 if (bond_info->lp_counter >= BOND_ALB_LP_TICKS(bond)) {
1499 bond_info->rlb_enabled);
1503 bond_info->lp_counter = 0;
1507 if (bond_info->tx_rebalance_counter >= BOND_TLB_REBALANCE_TICKS) {
1512 bond_info->unbalanced_load /
1514 bond_info->unbalanced_load = 0;
1517 bond_info->tx_rebalance_counter = 0;
1520 if (bond_info->rlb_enabled) {
1521 if (bond_info->primary_is_promisc &&
1522 (++bond_info->rlb_promisc_timeout_counter >= RLB_PROMISC_TIMEOUT)) {
1531 bond_info->rlb_promisc_timeout_counter = 0;
1539 bond_info->primary_is_promisc = 0;
1545 if (bond_info->rlb_rebalance) {
1546 bond_info->rlb_rebalance = 0;
1551 if (bond_info->rx_ntt) {
1552 if (bond_info->rlb_update_delay_counter) {
1553 --bond_info->rlb_update_delay_counter;
1556 if (bond_info->rlb_update_retry_counter)
1557 --bond_info->rlb_update_retry_counter;
1559 bond_info->rx_ntt = 0;
1615 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
1623 bond_info->tx_rebalance_counter = BOND_TLB_REBALANCE_TICKS;