[PATCH] crypto/qat: fix build
Thomas Monjalon
thomas at monjalon.net
Fri Dec 30 22:07:28 CET 2022
When trying to compile on a fresh system, I hit this error:
intel-ipsec-mb.h:333: error: "AES_BLOCK_SIZE" redefined
333 | #define AES_BLOCK_SIZE IMB_AES_BLOCK_SIZE
In file included from drivers/crypto/qat/qat_sym_session.c:8:
/usr/include/openssl/aes.h:26: previous definition
26 | # define AES_BLOCK_SIZE 16
I don't know why it was not seen before.
Is it because of a change in intel-ipsec-mb.h or in OpenSSL?
Signed-off-by: Thomas Monjalon <thomas at monjalon.net>
---
drivers/crypto/qat/qat_sym_session.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/crypto/qat/qat_sym_session.c b/drivers/crypto/qat/qat_sym_session.c
index 0ebc66f89e..37bde297c0 100644
--- a/drivers/crypto/qat/qat_sym_session.c
+++ b/drivers/crypto/qat/qat_sym_session.c
@@ -10,6 +10,7 @@
#include <openssl/evp.h> /* Needed for bpi runt block processing */
#ifdef RTE_QAT_LIBIPSECMB
+#undef AES_BLOCK_SIZE
#if defined(RTE_ARCH_ARM)
#include <ipsec-mb.h>
#else
--
2.39.0
More information about the dev
mailing list