freebsd-nq/sys/dev/cxgbe
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
..
common cxgbe(4): Assume that any unknown flash on the card is 4MB and has 64KB 2018-07-06 19:33:58 +00:00
crypto OpenCrypto: Convert sessions to opaque handles instead of integers 2018-07-18 00:56:25 +00:00
cudbg cxgbe(4): Fix unsafe mailbox access in cudbg. 2017-11-21 01:18:58 +00:00
cxgbei epoch(9): allow preemptible epochs to compose 2018-07-04 02:47:16 +00:00
firmware cxgbe(4): Filtering related features and fixes. 2018-05-15 04:24:38 +00:00
iw_cxgbe Optimize ibcore RoCE address handle creation from user-space. 2018-03-05 14:34:52 +00:00
tom epoch(9): allow preemptible epochs to compose 2018-07-04 02:47:16 +00:00
adapter.h cxgbe(4): Do not leak the filters in the hashfilter table on module 2018-06-27 01:51:17 +00:00
if_cc.c
if_ccv.c
if_cxl.c
if_cxlv.c
offload.h cxgbe(4): Data path for rate-limited tx. 2018-05-24 10:18:14 +00:00
osdep.h cxgbe(4): Remove homemade version of htobe32 from the driver. 2018-06-12 06:46:03 +00:00
t4_filter.c cxgbe(4): Do not leak the filters in the hashfilter table on module 2018-06-27 01:51:17 +00:00
t4_if.m
t4_ioctl.h cxgbe(4): Add fields to support configuration of hardware NAT and 2018-05-10 20:39:04 +00:00
t4_iov.c
t4_l2t.c cxgbe(4): Retire an old check. 2018-06-01 01:05:34 +00:00
t4_l2t.h cxgbe(4): Retire an old check. 2018-06-01 01:05:34 +00:00
t4_main.c Fix vertical whitespace nit in cxgbe. 2018-07-10 06:09:25 +00:00
t4_mp_ring.c
t4_mp_ring.h
t4_netmap.c cxgbe(4): Add a hw.cxgbe.starve_fl sysctl that can be used to starve the 2018-06-15 23:42:22 +00:00
t4_sched.c cxgbe(4): Data path for rate-limited tx. 2018-05-24 10:18:14 +00:00
t4_sge.c cxgbe(4): Suppress a warning about code that is used only with options 2018-05-25 18:57:41 +00:00
t4_smt.c cxgbe(4): Retire an old check. 2018-06-01 01:05:34 +00:00
t4_smt.h cxgbe(4): Retire an old check. 2018-06-01 01:05:34 +00:00
t4_tracer.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
t4_vf.c cxgbe(4): Do not forward interrupts to queues with freelists. This 2017-12-22 19:10:19 +00:00