diff options
author | andre <andre@FreeBSD.org> | 2012-10-28 18:07:34 +0000 |
---|---|---|
committer | andre <andre@FreeBSD.org> | 2012-10-28 18:07:34 +0000 |
commit | 2d426461500a5758cfe3fe0a86fcaa42422cfcf6 (patch) | |
tree | 7a722d9abcf590658ab9cd9799745d79073658f3 /sys/netinet/tcp_syncache.h | |
parent | df63a1d6ea0988b75d838ad5677672cddd312063 (diff) | |
download | FreeBSD-src-2d426461500a5758cfe3fe0a86fcaa42422cfcf6.zip FreeBSD-src-2d426461500a5758cfe3fe0a86fcaa42422cfcf6.tar.gz |
Change the syncache count reporting the current number of entries
from an unprotected u_int that reports garbage on SMP to a function
based sysctl obtaining the current value from UMA.
Also read back the actual cache_limit after page size rounding by UMA.
PR: kern/165879
MFC after: 2 weeks
Diffstat (limited to 'sys/netinet/tcp_syncache.h')
-rw-r--r-- | sys/netinet/tcp_syncache.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/netinet/tcp_syncache.h b/sys/netinet/tcp_syncache.h index d18ee07..1ff8a46 100644 --- a/sys/netinet/tcp_syncache.h +++ b/sys/netinet/tcp_syncache.h @@ -112,7 +112,6 @@ struct tcp_syncache { u_int hashsize; u_int hashmask; u_int bucket_limit; - u_int cache_count; /* XXX: unprotected */ u_int cache_limit; u_int rexmt_limit; u_int hash_secret; |