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