From 8bd98b8d85935e01d334b0da722a2dd0e1bbf79e Mon Sep 17 00:00:00 2001 From: Michael Shamis Date: Wed, 30 Sep 2020 11:01:57 +0300 Subject: [PATCH] crypto/mvsam: remove algo lists end Remove enumerators RTE_CRYPTO_CIPHER_LIST_END, RTE_CRYPTO_AUTH_LIST_END, RTE_CRYPTO_AEAD_LIST_END to prevent ABI breakages that may arise when adding new crypto algorithms. Signed-off-by: Michael Shamis --- drivers/crypto/mvsam/rte_mrvl_pmd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/crypto/mvsam/rte_mrvl_pmd.c b/drivers/crypto/mvsam/rte_mrvl_pmd.c index aaa40dcedb..bec51c9ff6 100644 --- a/drivers/crypto/mvsam/rte_mrvl_pmd.c +++ b/drivers/crypto/mvsam/rte_mrvl_pmd.c @@ -67,7 +67,7 @@ __rte_aligned(32); * Map of supported cipher algorithms. */ static const -struct cipher_params_mapping cipher_map[RTE_CRYPTO_CIPHER_LIST_END] = { +struct cipher_params_mapping cipher_map[] = { [RTE_CRYPTO_CIPHER_NULL] = { .supported = ALGO_SUPPORTED, .cipher_alg = SAM_CIPHER_NONE }, @@ -107,7 +107,7 @@ struct cipher_params_mapping cipher_map[RTE_CRYPTO_CIPHER_LIST_END] = { * Map of supported auth algorithms. */ static const -struct auth_params_mapping auth_map[RTE_CRYPTO_AUTH_LIST_END] = { +struct auth_params_mapping auth_map[] = { [RTE_CRYPTO_AUTH_NULL] = { .supported = ALGO_SUPPORTED, .auth_alg = SAM_AUTH_NONE }, @@ -156,7 +156,7 @@ struct auth_params_mapping auth_map[RTE_CRYPTO_AUTH_LIST_END] = { * Map of supported aead algorithms. */ static const -struct cipher_params_mapping aead_map[RTE_CRYPTO_AEAD_LIST_END] = { +struct cipher_params_mapping aead_map[] = { [RTE_CRYPTO_AEAD_AES_GCM] = { .supported = ALGO_SUPPORTED, .cipher_alg = SAM_CIPHER_AES, -- 2.20.1