summaryrefslogtreecommitdiff
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorRalf Lici <ralf@mandelbit.com>2025-11-14 11:40:29 +0100
committerAntonio Quartulli <antonio@openvpn.net>2026-03-17 11:09:20 +0100
commitd3244af9c4c2bbce57465130c9cd509182207c2d (patch)
tree743094697a776deff15dc428c8adc440c4980fa2 /include/uapi/linux
parent7b80d8a33500bd8ae5081c053f0447b502581d79 (diff)
ovpn: consolidate crypto allocations in one chunk
Currently ovpn uses three separate dynamically allocated structures to set up cryptographic operations for both encryption and decryption. This adds overhead to performance-critical paths and contribute to memory fragmentation. This commit consolidates those allocations into a single temporary blob, similar to what esp_alloc_tmp() does. The resulting performance gain is +7.7% and +4.3% for UDP when using AES and ChaChaPoly respectively, and +4.3% for TCP. Signed-off-by: Ralf Lici <ralf@mandelbit.com> Signed-off-by: Antonio Quartulli <antonio@openvpn.net> Reviewed-by: Sabrina Dubroca <sd@queasysnail.net>
Diffstat (limited to 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions