summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authorandre <andre@FreeBSD.org>2006-06-25 11:11:33 +0000
committerandre <andre@FreeBSD.org>2006-06-25 11:11:33 +0000
commit2c00a4721fda21828c704163a40f62ab6aa3f4e6 (patch)
treebbffd293057fc7e5ecdd4d91957cd335c6e9f440 /sys/netinet
parentc55984e606afc88e81ab9525ea302647d0e9fab9 (diff)
downloadFreeBSD-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.c1
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);
}
OpenPOWER on IntegriCloud