]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ktls: Defer creation of threads and zones until first use.
authorJohn Baldwin <jhb@FreeBSD.org>
Thu, 14 Oct 2021 22:48:34 +0000 (15:48 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Thu, 14 Oct 2021 22:48:34 +0000 (15:48 -0700)
commita72ee355646c4a379f55ac32d7d8dfe6c0d366f9
tree3e418d96d8b08607e7e2ea7f86ce69205ab9f4c7
parent86929782cfab2664010a31979e9e3c0626721ebb
ktls: Defer creation of threads and zones until first use.

Run ktls_init() when the first KTLS session is created rather than
unconditionally during boot.  This avoids creating unused threads and
allocating unused resources on systems which do not use KTLS.

Reviewed by: gallatin, markj
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D32487
sys/kern/uipc_ktls.c