From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5C8EFA0032 for ; Wed, 16 Mar 2022 13:23:33 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 225A040395; Wed, 16 Mar 2022 13:23:33 +0100 (CET) Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) by mails.dpdk.org (Postfix) with ESMTP id 2274340395 for ; Wed, 16 Mar 2022 13:23:32 +0100 (CET) Received: by mail-ej1-f50.google.com with SMTP id a8so3771224ejc.8 for ; Wed, 16 Mar 2022 05:23:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=oTbhf7YR1wPcjb9my8pcHvdyaD3T5oPPnwGbj3lq/Ls=; b=gZmFTpDU6XLIetnXcj/wTqAim/B+XnCYqRQwOzxfgPCma5UOC9t16TfXGpmqThrxwv hsu0L4vXcWd0R1OxsSI4w5AJBn/12w+H1Hy0OSLa0NPG1AgojBv7r23isNbmHXCTZvat bmO2459Pt8ickTcQrRYfRg4Ek8ryQaXtICFma8VuydVxXBD6IuMU1duEK+kbBpsVneFe N0tH4mlVaoy3jD3smlxrygX0Pp3Yo/JiT73pNb1IUvIQyRCXCZ6XcoWHKPubX9ptthth w+k/TsMyE3x7ULqJ6uafBLODZl+fycfb68wJPvRwq5C/DWFWvnoh3qvDpj5MPTWwXgxY +3sA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=oTbhf7YR1wPcjb9my8pcHvdyaD3T5oPPnwGbj3lq/Ls=; b=kX0IYHvb7Psh5xW0q9iYytG13fo4lUVT+dh+9eE26qkCEcAdb0kFo+eYytja7wD1HU Qk8vURvHjxlvw5V/KWow94JD4Qu5llx4+E/zsAPRWFo25m6Hr5q7vQi6OK72NupXrOa+ eVg/5HAMjs0wZfMhNjEbNtJiB7MnTKHql9ppDEZsWIlatRPj4c0Meb/hefuWKhMv4qVj Et7+IzYY56ld3jwHjimjozz5Si7mZBJyiZKT658O/mq365jmXDPgjL8ZbLagYqal76bN DrUfSZ7yoiDHEX4+4tTCyL/6k6YQHVqqNr/9zAeHAzDwNV88uNmsjeVA2ZIQ4otjvJKU BW3g== X-Gm-Message-State: AOAM530isNeVoQ41l0N2JxwRQMvcvexN0RbReVkIgKRO40vOcNLYMXPE /rSRRFT+YJVZVzd4xkrXCpbSN7mEosVSlw== X-Google-Smtp-Source: ABdhPJyIbf1YKDa2nyjIaP3i6x0iRSTlVsSnxJ/UxFSSBHEiQnRT8INvasnZ+XDZ9682LBwiL6KIgw== X-Received: by 2002:a17:907:1c98:b0:6db:b42:7f81 with SMTP id nb24-20020a1709071c9800b006db0b427f81mr26499822ejc.258.1647433411447; Wed, 16 Mar 2022 05:23:31 -0700 (PDT) Received: from localhost ([2a01:4b00:f41a:3600:360b:9754:2e3a:c344]) by smtp.gmail.com with ESMTPSA id n6-20020a170906724600b006d4e2f6857dsm814374ejk.139.2022.03.16.05.23.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Mar 2022 05:23:30 -0700 (PDT) From: luca.boccassi@gmail.com To: stable@dpdk.org Cc: david.marchand@redhat.com, ktraynor@redhat.com, christian.ehrhardt@canonical.com, Luca Boccassi Subject: [PATCH] cryptodev: add backward-compatible enum Date: Wed, 16 Mar 2022 12:23:18 +0000 Message-Id: <20220316122318.718039-1-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org From: Luca Boccassi 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 --- 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