Re: [PATCH v4 5/5] crypto/openssl: only set cipher padding once

2024-07-01 Thread Ji, Kai
Acked-by: Kai Ji From: Jack Bond-Preston Sent: 07 June 2024 13:47 To: Ji, Kai Cc: dev@dpdk.org ; Wathsala Vithanage Subject: [PATCH v4 5/5] crypto/openssl: only set cipher padding once Setting the cipher padding has a noticeable performance footprint, and it

[PATCH v4 5/5] crypto/openssl: only set cipher padding once

2024-06-07 Thread Jack Bond-Preston
Setting the cipher padding has a noticeable performance footprint, and it doesn't need to be done for every call to process_openssl_cipher_{en,de}crypt(). Setting it causes OpenSSL to set it on every future context re-init. Thus, for every buffer after the first one, the padding is being set twice.