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)
Thu, Oct 24, 2:59 AM
Unknown Object (File)
Tue, Oct 22, 11:23 AM
Unknown Object (File)
Sep 24 2024, 5:38 AM
Unknown Object (File)
Sep 23 2024, 10:19 PM
Unknown Object (File)
Sep 17 2024, 11:44 PM
Unknown Object (File)
Sep 8 2024, 6:57 PM
Unknown Object (File)
Sep 7 2024, 6:17 PM
Unknown Object (File)
Sep 7 2024, 3:09 PM
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