HomeFreeBSD

mlx5e: Make TLS tag zones unmanaged

Description

mlx5e: Make TLS tag zones unmanaged

These zones are cache zones used to allocate TLS offload contexts from
firmware. Releasing items from the cache is a sleepable operation due
to the need to await a response from the firmware command freeing the
tag, so items cannot be reclaimed from the zone in non-sleepable
contexts. Since the cache size is limited by firmware limits, avoid
this by setting UMA_ZONE_UNMANAGED to avoid reclamation by uma_timeout()
and the low memory handler.

Reviewed by: hselasky, kib
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34142

(cherry picked from commit 235ed6a48629771e4bc89141fdfe865b71024758)

Details

Provenance
hselaskyAuthored on Feb 24 2022, 9:59 AM
Reviewer
hselasky
Differential Revision
D34142: uma: Add UMA_ZONE_UNMANAGED
Parents
rG6bf4f9268fb2: uma: Add UMA_ZONE_UNMANAGED
Branches
Unknown
Tags
Unknown