Page MenuHomeFreeBSD

OpenCrypto: Convert sessions to pointers instead of integers
AbandonedPublic

Authored by cem on Jul 11 2018, 6:26 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 6, 3:25 AM
Unknown Object (File)
Tue, Nov 4, 11:09 PM
Unknown Object (File)
Fri, Oct 31, 12:04 PM
Unknown Object (File)
Wed, Oct 29, 4:44 AM
Unknown Object (File)
Sun, Oct 26, 8:19 PM
Unknown Object (File)
Fri, Oct 17, 3:18 AM
Unknown Object (File)
Sep 28 2025, 11:28 PM
Unknown Object (File)
Sep 25 2025, 8:34 PM
Subscribers
None

Details

Reviewers
jhb
Summary

Track session objects in the framework, and pass pointers between the
framework (OCF) and drivers. Avoid lots of redundancy and complexity in
individual drivers.

Inspired by
https://lists.freebsd.org/pipermail/freebsd-arch/2018-January/018835.html .

Test Plan

Proof of concept conversion to pointer sessions owned by OCF, instead of individual drivers.

I haven't converted the bulk of the drivers yet, and these just compile — have not tested yet. Looking for feedback on the general approach before I go bulk converting.

Diff Detail

Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 18021
Build 17773: arc lint + arc unit