Decrement the global syncache counter in syncache_expand() when the entry

is removed from the bucket.  This fixes the syncache statistics.
This commit is contained in:
Andre Oppermann 2006-06-25 11:11:33 +00:00
parent 9fe6d25444
commit a846263567
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=159922

View file

@ -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);
}