From 62700730728c54a238a366b8974bc8d8f9e3dadf Mon Sep 17 00:00:00 2001 From: Olivier Houchard Date: Fri, 4 Jul 2025 16:27:38 +0200 Subject: [PATCH] MINOR: build: Add a new option, USE_KTLS. Add a new define, USE_KTLS, that enables using kTLS in haproxy. It will only work for Linux with a kernel >= 4.17. --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index fca129c0b..4eb16e0bc 100644 --- a/Makefile +++ b/Makefile @@ -63,6 +63,7 @@ # USE_LIBATOMIC : force to link with/without libatomic. Automatic. # USE_PTHREAD_EMULATION : replace pthread's rwlocks with ours # USE_SHM_OPEN : use shm_open() for features that can make use of shared memory +# USE_KTLS : use kTLS.(requires at least Linux 4.17). # # Options can be forced by specifying "USE_xxx=1" or can be disabled by using # "USE_xxx=" (empty string). The list of enabled and disabled options for a @@ -346,7 +347,8 @@ use_opts = USE_EPOLL USE_KQUEUE USE_NETFILTER USE_POLL \ USE_THREAD_DUMP USE_EVPORTS USE_OT USE_QUIC USE_PROMEX \ USE_MEMORY_PROFILING USE_SHM_OPEN \ USE_STATIC_PCRE USE_STATIC_PCRE2 \ - USE_PCRE USE_PCRE_JIT USE_PCRE2 USE_PCRE2_JIT USE_QUIC_OPENSSL_COMPAT + USE_PCRE USE_PCRE_JIT USE_PCRE2 USE_PCRE2_JIT \ + USE_QUIC_OPENSSL_COMPAT USE_KTLS # preset all variables for all supported build options among use_opts $(reset_opts_vars)