aboutsummaryrefslogtreecommitdiff
path: root/sys/sys
diff options
context:
space:
mode:
authorGeorge V. Neville-Neil <gnn@FreeBSD.org>2014-10-10 19:26:26 +0000
committerGeorge V. Neville-Neil <gnn@FreeBSD.org>2014-10-10 19:26:26 +0000
commit1d2baefc132ed7c8526f8045409ad0bfa05d03f9 (patch)
tree882b23554b3fbe15cec348f633b9763a216448a1 /sys/sys
parent4cf97cc9d2d73dddc11b1915f4eb12a4906c9f41 (diff)
downloadsrc-1d2baefc132ed7c8526f8045409ad0bfa05d03f9.tar.gz
src-1d2baefc132ed7c8526f8045409ad0bfa05d03f9.zip
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
Notes
Notes: svn path=/head/; revision=272906
Diffstat (limited to 'sys/sys')
-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 ca9cc6789f02..e2e008bfa853 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_ */