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)
Fri, Apr 3, 6:03 AM
Unknown Object (File)
Wed, Apr 1, 2:42 AM
Unknown Object (File)
Sun, Mar 22, 4:31 PM
Unknown Object (File)
Sat, Mar 21, 11:53 AM
Unknown Object (File)
Sat, Mar 21, 4:40 AM
Unknown Object (File)
Sat, Mar 14, 2:40 PM
Unknown Object (File)
Sat, Mar 14, 11:26 AM
Unknown Object (File)
Sat, Mar 14, 6:11 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

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