HomeFreeBSD

tcp: drain tcp_hostcache_list in between per-bucket locks

Description

tcp: drain tcp_hostcache_list in between per-bucket locks

Explicitly drain the sbuf after completing each hash bucket
to minimize the work performed while holding the hash
bucket lock.

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

(cherry picked from commit 869880463cc2ce64e2e6599eaec880a981f3ced6)

Details

Provenance
rscheffAuthored on Mar 31 2021, 5:24 PM
Reviewer
transport
Differential Revision
D29483: tcp: drain tcp_hostcache_list in between per-bucket locks
Parents
rG831be7fa19ef: tcp: reduce memory footprint when listing tcp hostcache
Branches
Unknown
Tags
Unknown