Lines Matching defs:hash_index

219 static struct slave *__tlb_choose_channel(struct bonding *bond, u32 hash_index,
227 assigned_slave = hash_table[hash_index].tx_slave;
236 hash_table[hash_index].tx_slave = assigned_slave;
237 hash_table[hash_index].next = next_index;
238 hash_table[hash_index].prev = TLB_NULL_INDEX;
241 hash_table[next_index].prev = hash_index;
243 slave_info->head = hash_index;
245 hash_table[hash_index].load_history;
250 hash_table[hash_index].tx_bytes += skb_len;
255 static struct slave *tlb_choose_channel(struct bonding *bond, u32 hash_index,
265 tx_slave = __tlb_choose_channel(bond, hash_index, skb_len);
280 u32 hash_index;
284 hash_index = _simple_hash((u8 *)&(arp->ip_src), sizeof(arp->ip_src));
285 client_info = &(bond_info->rx_hashtbl[hash_index]);
495 u32 hash_index;
499 hash_index = bond_info->rx_hashtbl_used_head;
500 for (; hash_index != RLB_NULL_INDEX;
501 hash_index = client_info->used_next) {
502 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]);
555 u32 hash_index;
559 hash_index = bond_info->rx_hashtbl_used_head;
560 for (; hash_index != RLB_NULL_INDEX;
561 hash_index = client_info->used_next) {
562 client_info = &(bond_info->rx_hashtbl[hash_index]);
590 u32 hash_index = 0;
596 hash_index = _simple_hash((u8 *)&arp->ip_dst, sizeof(arp->ip_dst));
597 client_info = &(bond_info->rx_hashtbl[hash_index]);
637 rlb_src_unlink(bond, hash_index);
638 rlb_src_link(bond, hash_src, hash_index);
663 bond_info->rx_hashtbl_used_head = hash_index;
667 hash_index;
730 u32 hash_index;
735 hash_index = bond_info->rx_hashtbl_used_head;
736 for (; hash_index != RLB_NULL_INDEX;
737 hash_index = client_info->used_next) {
738 client_info = &(bond_info->rx_hashtbl[hash_index]);
1339 u32 hash_index;
1351 hash_index = bond_xmit_hash(bond, skb);
1354 hash_index & 0xFF,
1363 tx_slave = slaves->arr[hash_index %
1381 u32 hash_index = 0;
1462 hash_index = _simple_hash(hash_start, hash_size);
1463 tx_slave = tlb_choose_channel(bond, hash_index, skb->len);