freebsd-skq/sys/mips/nlm
cem 99ba792d73 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
..
dev OpenCrypto: Convert sessions to opaque handles instead of integers 2018-07-18 00:56:25 +00:00
hal sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
board_cpld.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
board_eeprom.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
board.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
board.h sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
bus_space_rmi_pci.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
bus_space_rmi.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
clock.h sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
cms.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
files.xlp
interrupt.h sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
intr_machdep.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
mpreset.S Rename assym.s to assym.inc 2018-03-20 17:58:51 +00:00
msgring.h sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
std.xlp
tick.c Create a new macro for static DPCPU data. 2018-07-05 17:13:37 +00:00
uart_cpu_xlp.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
usb_init.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
xlp_machdep.c Use boot_parse_* to parse command line args and retire cut-n-paste 2018-07-13 16:43:17 +00:00
xlp_pci.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
xlp_simplebus.c
xlp.h sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00