opnsense-src/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 Partially revert r224661: 2011-10-04 17:49:19 +00:00
ciu.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
cvmx_config.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
files.octeon1 Add preliminary Octeon PCI console support. Radisys-specific PCI console 2012-11-13 07:39:49 +00:00
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 sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
octeon_ebt3000_cf.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
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 sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
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 - Add watchdog driver for Cavium Octeon. At the moment only 2010-11-28 08:11:05 +00:00
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 sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
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.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
octopcireg.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
octopcivar.h sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
std.octeon1 Remove the gross hack for the Octeon Simple Executive to the least 2013-11-06 05:26:15 +00:00
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