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:
parent
9fe6d25444
commit
a846263567
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user