Page MenuHomeFreeBSD

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

Authored by jhb on Jul 16 2020, 6:46 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jul 4, 8:32 AM
Unknown Object (File)
Sat, Jul 4, 7:20 AM
Unknown Object (File)
Sat, Jul 4, 2:11 AM
Unknown Object (File)
Thu, Jul 2, 1:59 PM
Unknown Object (File)
Fri, Jun 26, 4:04 PM
Unknown Object (File)
Mon, Jun 22, 12:21 AM
Unknown Object (File)
Jun 15 2026, 6:13 PM
Unknown Object (File)
May 20 2026, 8:07 AM
Subscribers

Details

Summary

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.

Test Plan
  • tested in production at Netflix and on my own testboxes

Diff Detail

Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 32366
Build 29847: arc lint + arc unit