KTLS: Move OCF function pointers out of ktls_session.
authorJohn Baldwin <jhb@FreeBSD.org>
Fri, 22 Apr 2022 22:52:12 +0000 (15:52 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Fri, 22 Apr 2022 22:52:12 +0000 (15:52 -0700)
commita4c5d490f6be56468b2a088a5f6169846e39bd84
tree7276fae446661166ccaedbd62e9e372350dabc47
parentf2d166d5322e557ff1388a5419ed694187fc1dbc
KTLS: Move OCF function pointers out of ktls_session.

Instead, create a switch structure private to ktls_ocf.c and store a
pointer to the switch in the ocf_session.  This will permit adding an
additional function pointer needed for NIC TLS RX without further
bloating ktls_session.

Reviewed by: hselasky
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D35011
sys/kern/uipc_ktls.c
sys/opencrypto/ktls.h
sys/opencrypto/ktls_ocf.c
sys/sys/ktls.h