Lines Matching defs:hash_index

190 static struct slave *__tlb_choose_channel(struct bonding *bond, u32 hash_index,
198 assigned_slave = hash_table[hash_index].tx_slave;
207 hash_table[hash_index].tx_slave = assigned_slave;
208 hash_table[hash_index].next = next_index;
209 hash_table[hash_index].prev = TLB_NULL_INDEX;
212 hash_table[next_index].prev = hash_index;
214 slave_info->head = hash_index;
216 hash_table[hash_index].load_history;
221 hash_table[hash_index].tx_bytes += skb_len;
226 static struct slave *tlb_choose_channel(struct bonding *bond, u32 hash_index,
236 tx_slave = __tlb_choose_channel(bond, hash_index, skb_len);
251 u32 hash_index;
255 hash_index = _simple_hash((u8 *)&(arp->ip_src), sizeof(arp->ip_src));
256 client_info = &(bond_info->rx_hashtbl[hash_index]);
462 u32 hash_index;
466 hash_index = bond_info->rx_hashtbl_used_head;
467 for (; hash_index != RLB_NULL_INDEX;
468 hash_index = client_info->used_next) {
469 client_info = &(bond_info->rx_hashtbl[hash_index]);
491 u32 hash_index;
495 hash_index = bond_info->rx_hashtbl_used_head;
496 for (; hash_index != RLB_NULL_INDEX;
497 hash_index = client_info->used_next) {
498 client_info = &(bond_info->rx_hashtbl[hash_index]);
522 u32 hash_index;
526 hash_index = bond_info->rx_hashtbl_used_head;
527 for (; hash_index != RLB_NULL_INDEX;
528 hash_index = client_info->used_next) {
529 client_info = &(bond_info->rx_hashtbl[hash_index]);
558 u32 hash_index = 0;
564 hash_index = _simple_hash((u8 *)&arp->ip_dst, sizeof(arp->ip_dst));
565 client_info = &(bond_info->rx_hashtbl[hash_index]);
605 rlb_src_unlink(bond, hash_index);
606 rlb_src_link(bond, hash_src, hash_index);
631 bond_info->rx_hashtbl_used_head = hash_index;
635 hash_index;
705 u32 hash_index;
710 hash_index = bond_info->rx_hashtbl_used_head;
711 for (; hash_index != RLB_NULL_INDEX;
712 hash_index = client_info->used_next) {
713 client_info = &(bond_info->rx_hashtbl[hash_index]);
1343 u32 hash_index;
1355 hash_index = bond_xmit_hash(bond, skb);
1358 hash_index & 0xFF,
1367 tx_slave = slaves->arr[hash_index %
1394 u32 hash_index = 0;
1496 hash_index = _simple_hash(hash_start, hash_size);
1497 tx_slave = tlb_choose_channel(bond, hash_index, skb->len);