[PATCH] cryptodev: add backward-compatible enum

luca.boccassi at gmail.com luca.boccassi at gmail.com
Wed Mar 16 13:23:18 CET 2022


From: Luca Boccassi <bluca at debian.org>

The enum was renamed to fix a typo in main, and backported.
But in the stable release we want to keep backward compatibility
when possible, so also define the old name so that both old and
new code will work.

Fixes: 7b5609a5a0e7 ("cryptodev: fix RSA key type name")

Signed-off-by: Luca Boccassi <bluca at debian.org>
---
Thanks David for the report. Might be interesting for other LTS branches too.

 lib/librte_cryptodev/rte_crypto_asym.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/librte_cryptodev/rte_crypto_asym.h b/lib/librte_cryptodev/rte_crypto_asym.h
index 9c5bb9233a..8133a31ad4 100644
--- a/lib/librte_cryptodev/rte_crypto_asym.h
+++ b/lib/librte_cryptodev/rte_crypto_asym.h
@@ -147,6 +147,8 @@ enum rte_crypto_rsa_priv_key_type {
 	RTE_RSA_KEY_TYPE_EXP,
 	/**< RSA private key is an exponent */
 	RTE_RSA_KEY_TYPE_QT,
+	/**< Backward-compatible definition of old name */
+	RTE_RSA_KET_TYPE_QT = RTE_RSA_KEY_TYPE_QT,
 	/**< RSA private key is in quintuple format
 	 * See rte_crypto_rsa_priv_key_qt
 	 */
-- 
2.34.1



More information about the stable mailing list