Lines Matching defs:bond_info

127 	struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
138 bond_info->tx_hashtbl = new_hashtbl;
141 tlb_init_table_entry(&bond_info->tx_hashtbl[i], 0);
151 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
155 kfree(bond_info->tx_hashtbl);
156 bond_info->tx_hashtbl = NULL;
194 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
198 hash_table = bond_info->tx_hashtbl;
250 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
257 client_info = &(bond_info->rx_hashtbl[hash_index]);
266 bond_info->rx_ntt = 1;
308 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
323 if (slave == bond_info->rx_slave)
333 bond_info->rx_slave = rx_slave;
383 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
390 rx_hash_table = bond_info->rx_hashtbl;
391 index = bond_info->rx_hashtbl_used_head;
400 bond_info->rx_hashtbl[index].ntt = 1;
401 bond_info->rx_ntt = 1;
409 bond_info->rlb_update_retry_counter =
462 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
468 hash_index = bond_info->rx_hashtbl_used_head;
471 client_info = &(bond_info->rx_hashtbl[hash_index]);
474 if (bond_info->rlb_update_retry_counter == 0)
482 bond_info->rlb_update_delay_counter = RLB_UPDATE_DELAY;
490 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
497 hash_index = bond_info->rx_hashtbl_used_head;
500 client_info = &(bond_info->rx_hashtbl[hash_index]);
511 bond_info->rx_ntt = 1;
513 bond_info->rlb_update_retry_counter = RLB_UPDATE_RETRY;
522 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]);
546 bond_info->rx_ntt = 1;
557 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
567 client_info = &(bond_info->rx_hashtbl[hash_index]);
632 u32 prev_tbl_head = bond_info->rx_hashtbl_used_head;
634 bond_info->rx_hashtbl_used_head = hash_index;
637 bond_info->rx_hashtbl[prev_tbl_head].used_prev =
714 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
723 hash_index = bond_info->rx_hashtbl_used_head;
726 client_info = &(bond_info->rx_hashtbl[hash_index]);
739 bond_info->rx_ntt = 1;
768 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
769 u32 next_index = bond_info->rx_hashtbl[index].used_next;
770 u32 prev_index = bond_info->rx_hashtbl[index].used_prev;
772 if (index == bond_info->rx_hashtbl_used_head)
773 bond_info->rx_hashtbl_used_head = next_index;
775 bond_info->rx_hashtbl[prev_index].used_next = next_index;
777 bond_info->rx_hashtbl[next_index].used_prev = prev_index;
783 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
784 u32 next_index = bond_info->rx_hashtbl[index].src_next;
785 u32 prev_index = bond_info->rx_hashtbl[index].src_prev;
787 bond_info->rx_hashtbl[index].src_next = RLB_NULL_INDEX;
788 bond_info->rx_hashtbl[index].src_prev = RLB_NULL_INDEX;
791 bond_info->rx_hashtbl[next_index].src_prev = prev_index;
797 if (bond_info->rx_hashtbl[prev_index].src_first == index)
798 bond_info->rx_hashtbl[prev_index].src_first = next_index;
800 bond_info->rx_hashtbl[prev_index].src_next = next_index;
806 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
807 struct rlb_client_info *entry = &(bond_info->rx_hashtbl[index]);
820 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
823 bond_info->rx_hashtbl[ip_dst_hash].src_prev = ip_src_hash;
824 next = bond_info->rx_hashtbl[ip_src_hash].src_first;
825 bond_info->rx_hashtbl[ip_dst_hash].src_next = next;
827 bond_info->rx_hashtbl[next].src_prev = ip_dst_hash;
828 bond_info->rx_hashtbl[ip_src_hash].src_first = ip_dst_hash;
836 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
842 index = bond_info->rx_hashtbl[ip_src_hash].src_first;
844 struct rlb_client_info *entry = &(bond_info->rx_hashtbl[index]);
857 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
868 bond_info->rx_hashtbl = new_hashtbl;
870 bond_info->rx_hashtbl_used_head = RLB_NULL_INDEX;
873 rlb_init_table_entry(bond_info->rx_hashtbl + i);
885 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
889 kfree(bond_info->rx_hashtbl);
890 bond_info->rx_hashtbl = NULL;
891 bond_info->rx_hashtbl_used_head = RLB_NULL_INDEX;
898 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
903 curr_index = bond_info->rx_hashtbl_used_head;
905 struct rlb_client_info *curr = &(bond_info->rx_hashtbl[curr_index]);
906 u32 next_index = bond_info->rx_hashtbl[curr_index].used_next;
1331 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
1335 if (bond_info->rlb_enabled)
1342 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
1349 bond_info->unbalanced_load += skb->len;
1422 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
1493 if (bond_info->rlb_enabled)
1537 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
1542 atomic_set(&bond_info->tx_rebalance_counter, 0);
1543 bond_info->lp_counter = 0;
1549 atomic_inc(&bond_info->tx_rebalance_counter);
1550 bond_info->lp_counter++;
1553 if (bond_info->lp_counter >= BOND_ALB_LP_TICKS(bond)) {
1563 bond_info->rlb_enabled);
1567 bond_info->lp_counter = 0;
1571 if (atomic_read(&bond_info->tx_rebalance_counter) >= BOND_TLB_REBALANCE_TICKS) {
1576 bond_info->unbalanced_load /
1578 bond_info->unbalanced_load = 0;
1581 atomic_set(&bond_info->tx_rebalance_counter, 0);
1584 if (bond_info->rlb_enabled) {
1585 if (bond_info->primary_is_promisc &&
1586 (++bond_info->rlb_promisc_timeout_counter >= RLB_PROMISC_TIMEOUT)) {
1595 bond_info->rlb_promisc_timeout_counter = 0;
1603 bond_info->primary_is_promisc = 0;
1609 if (bond_info->rlb_rebalance) {
1610 bond_info->rlb_rebalance = 0;
1615 if (bond_info->rx_ntt) {
1616 if (bond_info->rlb_update_delay_counter) {
1617 --bond_info->rlb_update_delay_counter;
1620 if (bond_info->rlb_update_retry_counter)
1621 --bond_info->rlb_update_retry_counter;
1623 bond_info->rx_ntt = 0;
1681 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
1689 atomic_set(&bond_info->tx_rebalance_counter,