diff options
| author | Ralf Lici <ralf@mandelbit.com> | 2025-11-14 13:40:29 +0300 |
|---|---|---|
| committer | Antonio Quartulli <antonio@openvpn.net> | 2026-03-17 13:09:20 +0300 |
| commit | d3244af9c4c2bbce57465130c9cd509182207c2d (patch) | |
| tree | 743094697a776deff15dc428c8adc440c4980fa2 /include | |
| parent | 7b80d8a33500bd8ae5081c053f0447b502581d79 (diff) | |
| download | linux-d3244af9c4c2bbce57465130c9cd509182207c2d.tar.xz | |
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')
0 files changed, 0 insertions, 0 deletions
