Page MenuHomeFreeBSD

opencrypto: Embed the driver softc in the session structure

Authored by markj on Jan 14 2021, 4:35 PM.



Get rid of the crypto session UMA zone. I do not think session
allocations are frequent or performance-critical enough to warrant a
dedicated zone.

Store the driver softc below the fields owned by opencrypto. This is
a bit simpler and saves a pointer dereference when fetching the driver
softc when processing a request.

Diff Detail

R10 FreeBSD src repository
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

markj requested review of this revision.Jan 14 2021, 4:35 PM

Sure, seems fine to me.

This revision is now accepted and ready to land.Jan 14 2021, 5:08 PM