When performing authentication verification, some crypto PMDs require extra memory where the generated digest can be placed. Currently, these PMDs are getting the memory from the end of the source mbuf, which might fail if there is not enough tailroom.
To avoid this situation, some memory is allocated in each queue pair of the device, to store temporarily these digests. Changes in v2: - Removed incorrect indirection when getting the memory to store the generated digest (i.e. removed "&" in &temp_digest) Pablo de Lara (8): crypto/aesni_gcm: do not append digest crypto/armv8: do not append digest crypto/openssl: do not append digest crypto/kasumi: do not append digest crypto/snow3g: do not append digest crypto/zuc: do not append digest crypto/aesni_mb: do not append digest test/crypto: do not allocate extra memory for digest drivers/crypto/aesni_gcm/aesni_gcm_pmd.c | 31 ++++--------------- drivers/crypto/aesni_gcm/aesni_gcm_pmd_private.h | 7 +++++ drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c | 36 +++++++--------------- drivers/crypto/aesni_mb/rte_aesni_mb_pmd_ops.c | 5 +++ drivers/crypto/aesni_mb/rte_aesni_mb_pmd_private.h | 12 +++++++- drivers/crypto/armv8/rte_armv8_pmd.c | 14 +++------ drivers/crypto/armv8/rte_armv8_pmd_private.h | 8 +++++ drivers/crypto/kasumi/rte_kasumi_pmd.c | 22 +++++-------- drivers/crypto/kasumi/rte_kasumi_pmd_private.h | 7 +++++ drivers/crypto/openssl/rte_openssl_pmd.c | 19 +++++------- drivers/crypto/openssl/rte_openssl_pmd_private.h | 7 +++++ drivers/crypto/snow3g/rte_snow3g_pmd.c | 22 +++++-------- drivers/crypto/snow3g/rte_snow3g_pmd_private.h | 7 +++++ drivers/crypto/zuc/rte_zuc_pmd.c | 16 +++------- drivers/crypto/zuc/rte_zuc_pmd_private.h | 7 +++++ test/test/test_cryptodev_blockcipher.c | 29 ++--------------- 16 files changed, 112 insertions(+), 137 deletions(-) -- 2.9.4