HomeFreeBSD

tcp: For hostcache performance, use atomics instead of counters

Description

tcp: For hostcache performance, use atomics instead of counters

As accessing the tcp hostcache happens frequently on some
classes of servers, it was recommended to use atomic_add/subtract
rather than (per-CPU distributed) counters, which have to be
summed up at high cost to cache efficiency.

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

Details