mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
Connect the baseline OpenSSL ARMv8 fused AES-GCM kernels to the OCF ossl driver. Advertise the algorithm only when the system-wide capability set includes both AES and PMULL. Note that get_kernel_reg() is used to detect features such as PMULL because the ossl device attaches before arm64 populates elf_hwcap when ossl is built into the kernel or pre-loaded at boot. Prefer OSSL over armv8crypto for AES-GCM sessions while retaining armv8crypto as a fallback. This provides about a 50% speedup for a Netflix ktls workload on a small neoverse N1 board. Reviewed by: markj Constructive review feedback from: andrew, ngie Differential Revision: https://reviews.freebsd.org/D60097 Sponsored by: Netflix