]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
cxgbe: Only run ktls_tick when NIC TLS is enabled.
authorJohn Baldwin <jhb@FreeBSD.org>
Thu, 14 Oct 2021 17:59:16 +0000 (10:59 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Thu, 14 Oct 2021 17:59:16 +0000 (10:59 -0700)
commitef3f98ae4778a8d4463166c5ff3c7831099c6048
tree780bb8f7ac35e70802f72745277ee2310d2f5e45
parent367ec75323e660f7827e960f55688d557291236c
cxgbe: Only run ktls_tick when NIC TLS is enabled.

Previously the body of ktls_tick was a nop when NIC TLS was disabled,
but the callout was still scheduled consuming power on otherwise-idle
systems with Chelsio T6 adapters.  Now the callout only runs while NIC
TLS is enabled on at least one interface of an adapter.

Reported by: mav
Reviewed by: np, mav
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D32491
sys/dev/cxgbe/t4_main.c