freebsd-dev/sys/mips/cavium
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
..
cryptocteon OpenCrypto: Convert sessions to opaque handles instead of integers 2018-07-18 00:56:25 +00:00
octe sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
usb sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
asm_octeon.S
ciu.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
cvmx_config.h
files.octeon1
if_octm.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
obio.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
obiovar.h sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
octeon_cop2.h sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
octeon_cop2.S Rename assym.s to assym.inc 2018-03-20 17:58:51 +00:00
octeon_ds1337.c
octeon_ebt3000_cf.c
octeon_gpio.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
octeon_gpiovar.h sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
octeon_irq.h
octeon_machdep.c Fix compile error introduced in r336245. 2018-07-17 23:00:52 +00:00
octeon_mp.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
octeon_nmi.S
octeon_pci_console.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
octeon_pcmap_regs.h
octeon_pmc.c hwpmc: simplify calling convention for hwpmc interrupt handling 2018-06-08 04:58:03 +00:00
octeon_rnd.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
octeon_rtc.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
octeon_wdog.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
octopci_bus_space.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
octopci.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
octopcireg.h
octopcivar.h sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
std.octeon1
uart_bus_octeonusart.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
uart_cpu_octeonusart.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
uart_dev_oct16550.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00