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, Sep 20, 4:41 PM
Unknown Object (File)
Fri, Sep 19, 10:26 PM
Unknown Object (File)
Sep 3 2025, 8:21 AM
Unknown Object (File)
Aug 14 2025, 10:37 PM
Unknown Object (File)
Aug 14 2025, 11:43 AM
Unknown Object (File)
Jul 31 2025, 11:29 PM
Unknown Object (File)
Jul 8 2025, 10:40 AM
Unknown Object (File)
Jul 7 2025, 2:16 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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable