aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2021-02-08 14:19:02 +0000
committerMark Johnston <markj@FreeBSD.org>2021-02-08 14:19:02 +0000
commitb5aa9ad43aead288dca0eb94fb4621991917f4e1 (patch)
tree5649aacdeed093570faf590a81258260916e9d34 /sys
parent1755b2b9891bb1bfa7a58383ef5126821f7e46e3 (diff)
downloadsrc-b5aa9ad43aead288dca0eb94fb4621991917f4e1.tar.gz
src-b5aa9ad43aead288dca0eb94fb4621991917f4e1.zip
ktls: Make configuration sysctls available as tunables
Reviewed by: gallatin, jhb Sponsored by: Ampere Computing Submitted by: Klara, Inc. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D28499
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/uipc_ktls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/uipc_ktls.c b/sys/kern/uipc_ktls.c
index 28a63f3ce734..26912e410239 100644
--- a/sys/kern/uipc_ktls.c
+++ b/sys/kern/uipc_ktls.c
@@ -125,12 +125,12 @@ SYSCTL_INT(_kern_ipc_tls_stats, OID_AUTO, threads, CTLFLAG_RD,
"Number of TLS threads in thread-pool");
static bool ktls_offload_enable;
-SYSCTL_BOOL(_kern_ipc_tls, OID_AUTO, enable, CTLFLAG_RW,
+SYSCTL_BOOL(_kern_ipc_tls, OID_AUTO, enable, CTLFLAG_RWTUN,
&ktls_offload_enable, 0,
"Enable support for kernel TLS offload");
static bool ktls_cbc_enable = true;
-SYSCTL_BOOL(_kern_ipc_tls, OID_AUTO, cbc_enable, CTLFLAG_RW,
+SYSCTL_BOOL(_kern_ipc_tls, OID_AUTO, cbc_enable, CTLFLAG_RWTUN,
&ktls_cbc_enable, 1,
"Enable Support of AES-CBC crypto for kernel TLS");