Lines Matching refs:hash_index
191 static struct slave *__tlb_choose_channel(struct bonding *bond, u32 hash_index, in __tlb_choose_channel() argument
199 assigned_slave = hash_table[hash_index].tx_slave; in __tlb_choose_channel()
208 hash_table[hash_index].tx_slave = assigned_slave; in __tlb_choose_channel()
209 hash_table[hash_index].next = next_index; in __tlb_choose_channel()
210 hash_table[hash_index].prev = TLB_NULL_INDEX; in __tlb_choose_channel()
213 hash_table[next_index].prev = hash_index; in __tlb_choose_channel()
215 slave_info->head = hash_index; in __tlb_choose_channel()
217 hash_table[hash_index].load_history; in __tlb_choose_channel()
222 hash_table[hash_index].tx_bytes += skb_len; in __tlb_choose_channel()
227 static struct slave *tlb_choose_channel(struct bonding *bond, u32 hash_index, in tlb_choose_channel() argument
237 tx_slave = __tlb_choose_channel(bond, hash_index, skb_len); in tlb_choose_channel()
252 u32 hash_index; in rlb_update_entry_from_arp() local
256 hash_index = _simple_hash((u8 *)&(arp->ip_src), sizeof(arp->ip_src)); in rlb_update_entry_from_arp()
257 client_info = &(bond_info->rx_hashtbl[hash_index]); in rlb_update_entry_from_arp()
464 u32 hash_index; in rlb_update_rx_clients() local
468 hash_index = bond_info->rx_hashtbl_used_head; in rlb_update_rx_clients()
469 for (; hash_index != RLB_NULL_INDEX; in rlb_update_rx_clients()
470 hash_index = client_info->used_next) { in rlb_update_rx_clients()
471 client_info = &(bond_info->rx_hashtbl[hash_index]); in rlb_update_rx_clients()
493 u32 hash_index; in rlb_req_update_slave_clients() local
497 hash_index = bond_info->rx_hashtbl_used_head; in rlb_req_update_slave_clients()
498 for (; hash_index != RLB_NULL_INDEX; in rlb_req_update_slave_clients()
499 hash_index = client_info->used_next) { in rlb_req_update_slave_clients()
500 client_info = &(bond_info->rx_hashtbl[hash_index]); in rlb_req_update_slave_clients()
524 u32 hash_index; in rlb_req_update_subnet_clients() local
528 hash_index = bond_info->rx_hashtbl_used_head; in rlb_req_update_subnet_clients()
529 for (; hash_index != RLB_NULL_INDEX; in rlb_req_update_subnet_clients()
530 hash_index = client_info->used_next) { in rlb_req_update_subnet_clients()
531 client_info = &(bond_info->rx_hashtbl[hash_index]); in rlb_req_update_subnet_clients()
560 u32 hash_index = 0; in rlb_choose_channel() local
566 hash_index = _simple_hash((u8 *)&arp->ip_dst, sizeof(arp->ip_dst)); in rlb_choose_channel()
567 client_info = &(bond_info->rx_hashtbl[hash_index]); in rlb_choose_channel()
607 rlb_src_unlink(bond, hash_index); in rlb_choose_channel()
608 rlb_src_link(bond, hash_src, hash_index); in rlb_choose_channel()
634 bond_info->rx_hashtbl_used_head = hash_index; in rlb_choose_channel()
638 hash_index; in rlb_choose_channel()
718 u32 hash_index; in rlb_rebalance() local
723 hash_index = bond_info->rx_hashtbl_used_head; in rlb_rebalance()
724 for (; hash_index != RLB_NULL_INDEX; in rlb_rebalance()
725 hash_index = client_info->used_next) { in rlb_rebalance()
726 client_info = &(bond_info->rx_hashtbl[hash_index]); in rlb_rebalance()
1375 u32 hash_index; in bond_xmit_tlb_slave_get() local
1388 hash_index = bond_xmit_hash(bond, skb); in bond_xmit_tlb_slave_get()
1391 hash_index & 0xFF, in bond_xmit_tlb_slave_get()
1400 tx_slave = slaves->arr[hash_index % in bond_xmit_tlb_slave_get()
1427 u32 hash_index = 0; in bond_xmit_alb_slave_get() local
1502 hash_index = _simple_hash(hash_start, hash_size); in bond_xmit_alb_slave_get()
1503 tx_slave = tlb_choose_channel(bond, hash_index, skb->len); in bond_xmit_alb_slave_get()