Lines Matching defs:hash
114 * with TCAMs or hardware hash tables. This might require connections to
222 * Given a hash of whatever the covered tuple might be, return a pcbgroup
227 in_pcbgroup_getbucket(struct inpcbinfo *pcbinfo, uint32_t hash)
231 return (rss_getbucket(hash));
233 return (hash % pcbinfo->ipi_npcbgroups);
238 * Map a (hashtype, hash) tuple into a connection group, or NULL if the hash
240 * a TCP packet turns up with a 2-tuple hash, or if an RSS hash is present but
244 in_pcbgroup_byhash(struct inpcbinfo *pcbinfo, u_int hashtype, uint32_t hash)
255 in_pcbgroup_getbucket(pcbinfo, hash)]);
272 uint32_t hash;
282 hash = rss_hash_ip4_4tuple(faddr, fport, laddr, lport);
284 hash = faddr.s_addr ^ fport;
290 hash = rss_hash_ip4_2tuple(faddr, laddr);
292 hash = faddr.s_addr ^ laddr.s_addr;
297 hash = 0;
300 hash)]);
310 * using a tuple or hash.
430 * that the PCB hash is calculated correctly.
432 * The wildcard hash calculation differs from the
460 * the hash on the mbuf to avoid doing a software hash calculation for RSS.