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
F157322435: D25692.id.diff
Wed, May 20, 8:07 AM
Unknown Object (File)
Wed, May 20, 5:43 AM
Unknown Object (File)
Sat, May 16, 8:49 PM
Unknown Object (File)
Sat, May 16, 3:04 PM
Unknown Object (File)
Sat, May 16, 2:29 PM
Unknown Object (File)
Fri, May 15, 9:45 AM
Unknown Object (File)
Sat, May 2, 10:59 PM
Unknown Object (File)
Mon, Apr 27, 6:41 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