diff options
author | andre <andre@FreeBSD.org> | 2006-06-25 11:11:33 +0000 |
---|---|---|
committer | andre <andre@FreeBSD.org> | 2006-06-25 11:11:33 +0000 |
commit | 2c00a4721fda21828c704163a40f62ab6aa3f4e6 (patch) | |
tree | bbffd293057fc7e5ecdd4d91957cd335c6e9f440 /sys/netinet | |
parent | c55984e606afc88e81ab9525ea302647d0e9fab9 (diff) | |
download | FreeBSD-src-2c00a4721fda21828c704163a40f62ab6aa3f4e6.zip FreeBSD-src-2c00a4721fda21828c704163a40f62ab6aa3f4e6.tar.gz |
Decrement the global syncache counter in syncache_expand() when the entry
is removed from the bucket. This fixes the syncache statistics.
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/tcp_syncache.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netinet/tcp_syncache.c b/sys/netinet/tcp_syncache.c index b2d3f46..50e7987 100644 --- a/sys/netinet/tcp_syncache.c +++ b/sys/netinet/tcp_syncache.c @@ -772,6 +772,7 @@ syncache_expand(struct in_conninfo *inc, struct tcphdr *th, /* Pull out the entry to unlock the bucket row. */ TAILQ_REMOVE(&sch->sch_bucket, sc, sc_hash); sch->sch_length--; + tcp_syncache.cache_count--; SCH_UNLOCK(sch); } |