Lines Matching defs:hash
53 * struct udp_hslot - UDP hash slot
68 * @hash: hash table, sockets are hashed on (local port)
69 * @hash2: hash table, sockets are hashed on (local port, local address)
70 * @mask: number of slots in hash tables, minus 1
71 * @log: log2(number of slots in hash table)
74 struct udp_hslot *hash;
84 return &table->hash[udp_hashfn(net, num, table->mask)];
87 * For secondary hash, net_hash_mix() is performed before calling
91 unsigned int hash)
93 return &table->hash2[hash & table->mask];
187 /* hash routines shared between UDPv4/6 and UDP-Litev4/6 */
210 u32 hash;
217 hash = skb_get_hash(skb);
218 if (unlikely(!hash)) {
220 /* Can't find a normal hash, caller has indicated an
221 * Ethernet packet so use that to compute a hash.
223 hash = jhash(skb->data, 2 * ETH_ALEN,
226 /* Can't derive any sort of hash for the packet, set
229 hash = udp_flow_hashrnd();
233 /* Since this is being sent on the wire obfuscate hash a bit
238 hash ^= hash << 16;
240 return htons((((u64) hash * (max - min)) >> 32) + min);