openssl: add kTLS support option
authorTan Zien <nabsdh9@gmail.com>
Sun, 28 Dec 2025 00:08:33 +0000 (08:08 +0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Fri, 2 Jan 2026 23:30:27 +0000 (00:30 +0100)
commit34836dffb1a06f84a0112982c2a88b2e5e212e87
tree64b15c57c1e088c7914091fb61390a4932349012
parentf49b452cc021a8f7e0145604ff1d88e8c14285dd
openssl: add kTLS support option

This commit add option to enable kTLS support, improving
performance by offloading TLS encryption and decryption to
kernel space.

- Reduced CPU usage by minimizing data copying between user space
  and kernel space.
- Enables the use of the sendfile() system call with encrypted
  sockets for zero-copy data transmission.
- Leverages hardware-accelerated NIC that support TLS offloading.

Signed-off-by: Tan Zien <nabsdh9@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21306
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
package/libs/openssl/Config.in
package/libs/openssl/Makefile