Lines Matching full:hash

52 /* for software rss hash support */
58 * Hash an IPv4 2-tuple.
75 * Hash an IPv4 4-tuple.
102 * The protocol code may wish to do a software hash of the given
103 * tuple. This depends upon the currently configured RSS hash types.
115 uint32_t hash; in rss_proto_software_hash_v4() local
118 * Next, choose the hash type depending upon the protocol in rss_proto_software_hash_v4()
123 hash = rss_hash_ip4_4tuple(s, sp, d, dp); in rss_proto_software_hash_v4()
124 *hashval = hash; in rss_proto_software_hash_v4()
129 hash = rss_hash_ip4_4tuple(s, sp, d, dp); in rss_proto_software_hash_v4()
130 *hashval = hash; in rss_proto_software_hash_v4()
134 /* RSS doesn't hash on other protocols like SCTP; so 2-tuple */ in rss_proto_software_hash_v4()
135 hash = rss_hash_ip4_2tuple(s, d); in rss_proto_software_hash_v4()
136 *hashval = hash; in rss_proto_software_hash_v4()
151 * The protocol code may wish to do a software hash of the given
152 * tuple. This depends upon the currently configured RSS hash types.
161 uint32_t hash; in xps_proto_software_hash_v4() local
164 * Next, choose the hash type depending upon the protocol in xps_proto_software_hash_v4()
169 hash = rss_hash_ip4_4tuple(d, dp, s, sp); in xps_proto_software_hash_v4()
171 return (hash); in xps_proto_software_hash_v4()
174 hash = rss_hash_ip4_4tuple(d, dp, s, sp); in xps_proto_software_hash_v4()
176 return (hash); in xps_proto_software_hash_v4()
178 /* RSS doesn't hash on other protocols like SCTP; so 2-tuple */ in xps_proto_software_hash_v4()
179 hash = rss_hash_ip4_2tuple(d, s); in xps_proto_software_hash_v4()
181 return (hash); in xps_proto_software_hash_v4()
197 * Returns 0 if a hash was done, -1 if no hash was done, +1 if
257 * then we shouldn't just "trust" the 2-tuple hash. We need in rss_mbuf_software_hash_v4()
258 * a 4-tuple hash. in rss_mbuf_software_hash_v4()
306 * Decode enough information to make a hash decision. in rss_mbuf_software_hash_v4()
308 * XXX TODO: does the hardware hash on 4-tuple if IP in rss_mbuf_software_hash_v4()
340 /* Default to 2-tuple hash */ in rss_mbuf_software_hash_v4()
357 * If an existing RSS hash exists and it matches what the configured
360 * If there's an existing RSS hash but the desired hash is different,
361 * or if there's no useful RSS hash, then calculate it via
377 /* mbuf has a valid hash already; don't need to modify it */ in rss_soft_m2cpuid_v4()
380 /* hash was done; update */ in rss_soft_m2cpuid_v4()
385 /* no hash was done */ in rss_soft_m2cpuid_v4()