aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_hostcache.h
diff options
context:
space:
mode:
authorRichard Scheffenegger <rscheff@FreeBSD.org>2021-04-08 18:28:43 +0000
committerRichard Scheffenegger <rscheff@FreeBSD.org>2021-04-16 20:44:03 +0000
commit139576030ff339e164f7b6a41bf382e147d41053 (patch)
treecb2a5877dcb662c254e06c50a711d75137a7f65b /sys/netinet/tcp_hostcache.h
parente5bbb777cbfafbd915ce815b8d0f2d3db8d26431 (diff)
tcp: Use jenkins_hash32() in hostcache
As other parts of the base tcp stack (eg. tcp fastopen) already use jenkins_hash32, and the properties appear reasonably good, switching to use that. Reviewed By: tuexen, #transport, ae MFC after: 2 weeks Sponsored by: NetApp, Inc. Differential Revision: https://reviews.freebsd.org/D29515 (cherry picked from commit b878ec024bbee063f4181c9be08476a864fa6a7b)
Diffstat (limited to 'sys/netinet/tcp_hostcache.h')
-rw-r--r--sys/netinet/tcp_hostcache.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netinet/tcp_hostcache.h b/sys/netinet/tcp_hostcache.h
index 2f7035c0c6af..bfb46a371104 100644
--- a/sys/netinet/tcp_hostcache.h
+++ b/sys/netinet/tcp_hostcache.h
@@ -73,6 +73,7 @@ struct tcp_hostcache {
uma_zone_t zone;
u_int hashsize;
u_int hashmask;
+ u_int hashsalt;
u_int bucket_limit;
u_int cache_count;
u_int cache_limit;