freebsd-nq/sys/mips
Conrad Meyer 1b0909d51a OpenCrypto: Convert sessions to opaque handles instead of integers
Track session objects in the framework, and pass handles between the
framework (OCF), consumers, and drivers.  Avoid redundancy and complexity in
individual drivers by allocating session memory in the framework and
providing it to drivers in ::newsession().

Session handles are no longer integers with information encoded in various
high bits.  Use of the CRYPTO_SESID2FOO() macros should be replaced with the
appropriate crypto_ses2foo() function on the opaque session handle.

Convert OCF drivers (in particular, cryptosoft, as well as myriad others) to
the opaque handle interface.  Discard existing session tracking as much as
possible (quick pass).  There may be additional code ripe for deletion.

Convert OCF consumers (ipsec, geom_eli, krb5, cryptodev) to handle-style
interface.  The conversion is largely mechnical.

The change is documented in crypto.9.

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

No objection from:	ae (ipsec portion)
Reported by:	jhb
2018-07-18 00:56:25 +00:00
..
atheros Use boot_parse_* to parse command line args and retire cut-n-paste 2018-07-13 16:43:17 +00:00
beri Add SMP support for BERI CPU. 2018-04-12 17:43:19 +00:00
broadcom bhnd(4): Use the new BHND_CAP_BP64 capability flag to exclude DMA 2018-03-29 19:48:50 +00:00
cavium OpenCrypto: Convert sessions to opaque handles instead of integers 2018-07-18 00:56:25 +00:00
conf Remove duplicate configuration values as they are already defined in 2018-07-06 13:31:06 +00:00
gxemul sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
include Back pcpu zone with domain correct pages 2018-07-06 02:06:03 +00:00
ingenic Use boot_parse_* to parse command line args and retire cut-n-paste 2018-07-13 16:43:17 +00:00
malta Support 2GB of memory on Malta systems with FreeBSD/mips. 2018-06-28 21:27:34 +00:00
mediatek Use boot_parse_* to parse command line args and retire cut-n-paste 2018-07-13 16:43:17 +00:00
mips Invalidate the mapping before updating its physical address. 2018-07-13 17:12:50 +00:00
nlm OpenCrypto: Convert sessions to opaque handles instead of integers 2018-07-18 00:56:25 +00:00
sibyte sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00