]> 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>
Tue, 23 Nov 2021 23:11:43 +0000 (15:11 -0800)
commitff590791ff6d69c65118cf396c431f2f07b50a75
tree0d16781de3a00e4ccdf550365d69272843418b33
parent5f6c2bd03bc35d8ffae3bd7a0ffe38822441b0c8
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

(cherry picked from commit ef3f98ae4778a8d4463166c5ff3c7831099c6048)
sys/dev/cxgbe/t4_main.c