HomeFreeBSD

Don't dynamically allocate data structures for KTLS crypto requests.

Description

Don't dynamically allocate data structures for KTLS crypto requests.

Allocate iovec arrays and struct cryptop and struct ocf_operation
objects on the stack to reduce avoid the overhead of malloc().

These structures are all small enough to fit on the stack of the KTLS
worker threads.

Reviewed by: gallatin
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D25692

Details

Provenance
jhbAuthored on Jul 20 2020, 10:32 PM
Parents
rGac11d8574093: iflib: initialize netmap with the correct number of descriptors
Branches
Unknown
Tags
Unknown

Event Timeline