HomeFreeBSD

mlx5e tls: Ensure all allocated tags have a hw context associated

Description

mlx5e tls: Ensure all allocated tags have a hw context associated

Ensure all allocated tags have a hardware context associated.
The hardware context allocation is moved into the zone import
routine, as suggested by kib. This is safe because these zone
allocations are always done in a sleepable context.

I have removed the now pointless num_resources tracking,
and added sysctls / tunables to control UMA zone limits
for these tls tags, as well as a tunable to let the
driver pre-allocate tags at boot.

MFC after: 2 weeks

Details

Provenance
gallatinAuthored on Nov 23 2024, 9:43 AM
kibCommitted on Nov 23 2024, 10:01 AM
Parents
rGfdeb273d49bf: dtrace: Add some more annotations for KMSAN
Branches
Unknown
Tags
Unknown