aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRay Kinsella <mdr@ashroe.eu>2020-11-13 09:29:44 +0000
committerDamjan Marion <dmarion@me.com>2020-11-13 10:26:48 +0000
commita6a5031e78f58684ad6d210a6acb9d46b990402b (patch)
tree7c854da9b01d416adbbcc7f1d35008dc5aacdea7
parent1e0e3d55a85f5cec9ce00da267924c153d694600 (diff)
crypto-native: fix multi-arch variant initialization
crypto_native/main.h is being built as default, and crypto_native_main is initialized with a size of 64 bytes. crypto_native/aes_gcm.c and crypto_native/aes_cbc.c are march variants, their ICL variants are expecting crypto_native_main to be 256 bytes. Type: fix Signed-off-by: Georgii Tkachuk <georgii.tkachuk@intel.com> Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com> Signed-off-by: Ray Kinsella <mdr@ashroe.eu> Change-Id: I4cddb75b712ea83c9cfca621887605d7bae104ec
-rw-r--r--src/plugins/crypto_native/crypto_native.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/plugins/crypto_native/crypto_native.h b/src/plugins/crypto_native/crypto_native.h
index 5b774b302de..d5c33daa1a6 100644
--- a/src/plugins/crypto_native/crypto_native.h
+++ b/src/plugins/crypto_native/crypto_native.h
@@ -23,11 +23,7 @@ typedef void *(crypto_native_key_fn_t) (vnet_crypto_key_t * key);
typedef struct
{
CLIB_CACHE_LINE_ALIGN_MARK (cacheline0);
-#if __VAES__
u8x16 cbc_iv[16];
-#else
- u8x16 cbc_iv[4];
-#endif
} crypto_native_per_thread_data_t;
typedef struct