HomeFreeBSD

tcp: Make hostcache.cache_count MPSAFE by using a counter_u64_t

Description

tcp: Make hostcache.cache_count MPSAFE by using a counter_u64_t

Addressing the underlying root cause for cache_count to
show unexpectedly high values, by protecting all arithmetic on
that global variable by using counter(9).

PR: 254333
Reviewed By: tuexen, transport
MFC after: 2 weeks
Sponsored by: NetApp, Inc.
Differential Revision: https://reviews.freebsd.org/D29510

(cherry picked from commit 95e56d31e348594973affd0ea81d8f8383bc3031)

Details

Provenance
rscheffAuthored on Mar 31 2021, 5:30 PM
Reviewer
transport
Differential Revision
D29510: tcp: Make hostcache.cache_count MPSAFE by using a counter_u64_t
Parents
rGe610ebe5d351: tcp: drain tcp_hostcache_list in between per-bucket locks
Branches
Unknown
Tags
Unknown