summaryrefslogtreecommitdiffstats
path: root/sys/sys/hash.h
diff options
context:
space:
mode:
authorgnn <gnn@FreeBSD.org>2014-10-10 19:26:26 +0000
committergnn <gnn@FreeBSD.org>2014-10-10 19:26:26 +0000
commit23f601a6ca01e7c80579cb2278a1d7b3e6e8d71a (patch)
tree882b23554b3fbe15cec348f633b9763a216448a1 /sys/sys/hash.h
parent0af4e9789883c048c1bb1d7220f5acf4833f6a86 (diff)
downloadFreeBSD-src-23f601a6ca01e7c80579cb2278a1d7b3e6e8d71a.zip
FreeBSD-src-23f601a6ca01e7c80579cb2278a1d7b3e6e8d71a.tar.gz
Change the PF hash from Jenkins to Murmur3. In forwarding tests
this showed a conservative 3% incrase in PPS. Differential Revision: https://reviews.freebsd.org/D461 Submitted by: des Reviewed by: emaste MFC after: 1 month
Diffstat (limited to 'sys/sys/hash.h')
-rw-r--r--sys/sys/hash.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/sys/hash.h b/sys/sys/hash.h
index ca9cc67..e2e008b 100644
--- a/sys/sys/hash.h
+++ b/sys/sys/hash.h
@@ -125,6 +125,9 @@ hash32_strne(const void *buf, size_t len, int end, const char **ep,
*/
uint32_t jenkins_hash(const void *, size_t, uint32_t);
uint32_t jenkins_hash32(const uint32_t *, size_t, uint32_t);
+
+uint32_t murmur3_aligned_32(const void *data, size_t len, uint32_t seed);
+
#endif /* _KERNEL */
#endif /* !_SYS_HASH_H_ */
OpenPOWER on IntegriCloud