Lines Matching full:hash
52 /* for software rss hash support */
59 * Hash an IPv6 2-tuple.
76 * Hash an IPv6 4-tuple.
103 * The protocol code may wish to do a software hash of the given
104 * tuple. This depends upon the currently configured RSS hash types.
116 uint32_t hash; in rss_proto_software_hash_v6() local
119 * Next, choose the hash type depending upon the protocol in rss_proto_software_hash_v6()
124 hash = rss_hash_ip6_4tuple(s, sp, d, dp); in rss_proto_software_hash_v6()
125 *hashval = hash; in rss_proto_software_hash_v6()
130 hash = rss_hash_ip6_4tuple(s, sp, d, dp); in rss_proto_software_hash_v6()
131 *hashval = hash; in rss_proto_software_hash_v6()
135 /* RSS doesn't hash on other protocols like SCTP; so 2-tuple */ in rss_proto_software_hash_v6()
136 hash = rss_hash_ip6_2tuple(s, d); in rss_proto_software_hash_v6()
137 *hashval = hash; in rss_proto_software_hash_v6()
152 * The protocol code may wish to do a software hash of the given
153 * tuple. This depends upon the currently configured RSS hash types.
163 uint32_t hash; in xps_proto_software_hash_v6() local
166 * Next, choose the hash type depending upon the protocol in xps_proto_software_hash_v6()
171 hash = rss_hash_ip6_4tuple(d, dp, s, sp); in xps_proto_software_hash_v6()
173 return (hash); in xps_proto_software_hash_v6()
176 hash = rss_hash_ip6_4tuple(d, dp, s, sp); in xps_proto_software_hash_v6()
178 return (hash); in xps_proto_software_hash_v6()
180 /* RSS doesn't hash on other protocols like SCTP; so 2-tuple */ in xps_proto_software_hash_v6()
181 hash = rss_hash_ip6_2tuple(d, s); in xps_proto_software_hash_v6()
183 return (hash); in xps_proto_software_hash_v6()
200 * Returns 0 if a hash was done, -1 if no hash was done, +1 if
289 * then we shouldn't just "trust" the 2-tuple hash. We need in rss_mbuf_software_hash_v6()
290 * a 4-tuple hash. in rss_mbuf_software_hash_v6()
336 * Decode enough information to make a hash decision. in rss_mbuf_software_hash_v6()
365 /* Default to 2-tuple hash */ in rss_mbuf_software_hash_v6()
382 * If an existing RSS hash exists and it matches what the configured
385 * If there's an existing RSS hash but the desired hash is different,
386 * or if there's no useful RSS hash, then calculate it via
402 /* mbuf has a valid hash already; don't need to modify it */ in rss_soft_m2cpuid_v6()
405 /* hash was done; update */ in rss_soft_m2cpuid_v6()
410 /* no hash was done */ in rss_soft_m2cpuid_v6()