]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add support for KTLS in the Chelsio TOE module.
authorjhb <jhb@FreeBSD.org>
Tue, 8 Oct 2019 21:40:42 +0000 (21:40 +0000)
committerjhb <jhb@FreeBSD.org>
Tue, 8 Oct 2019 21:40:42 +0000 (21:40 +0000)
commit0e8a8e5def08d6519690a66252a564039ec225ef
tree40433765f47e6637ac794e8118c6936b8d740fe4
parentde69cf8b0a7e042ac783a725e56822bee0587c19
Add support for KTLS in the Chelsio TOE module.

This adds a TOE hook to allocate a KTLS session.  It also recognizes
TLS mbufs in the socket buffer and sends those to the NIC using a TLS
work request to encrypt the record before segmenting it.

TOE TLS support must be enabled via the dev.t6nex.<N>.tls sysctl in
addition to enabling KTLS.

Reviewed by: np, gallatin
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D21891
sys/dev/cxgbe/tom/t4_cpl_io.c
sys/dev/cxgbe/tom/t4_tls.c
sys/dev/cxgbe/tom/t4_tls.h
sys/dev/cxgbe/tom/t4_tom.c
sys/dev/cxgbe/tom/t4_tom.h