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, May 4, 11:49 AM
Unknown Object (File)
Wed, Apr 17, 2:26 PM
Unknown Object (File)
Wed, Apr 17, 1:48 PM
Unknown Object (File)
Wed, Apr 17, 3:53 AM
Unknown Object (File)
Tue, Apr 16, 1:30 PM
Unknown Object (File)
Thu, Apr 11, 5:37 PM
Unknown Object (File)
Thu, Apr 11, 4:59 PM
Unknown Object (File)
Tue, Apr 9, 11:35 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