HomeFreeBSD

ipsec: globalize lft zone and zero out buffers at allocation time

Description

ipsec: globalize lft zone and zero out buffers at allocation time

Creation of a zone is expensive and there is no need to have one for
every vnet. Moreover, this wastes memory as these separate zones
cannot use the same per-cpu caches. Finally, this is a step towards
replacing the custom zone with pcpu-16.

Two counter_u64_zero calls induce back-to-back IPIs to zero everything
out. Instead, pass the M_ZERO flag to let uma just iterate all buffers.
The counter(9) API abstraction is already violated by not using
counter_u64_alloc.

Reviewed by: ae
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D30916

Details

Provenance
mjgAuthored on Jun 24 2021, 11:19 AM
Reviewer
ae
Differential Revision
D30916: ipsec: globalize lft zone and zero out buffers at allocation time
Parents
rG91064841d72b: bhyve: Fix NVMe iovec construction for large IOs
Branches
Unknown
Tags
Unknown