From: Gowrishankar Muthukrishnan <gmuthukri...@marvell.com>

Fix order of ECFPM parameters.

Fixes: 76618fc4bef ("crypto/cnxk: fix order of ECFPM parameters")

Signed-off-by: Gowrishankar Muthukrishnan <gmuthukri...@marvell.com>
---
 drivers/crypto/cnxk/cnxk_ae.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/crypto/cnxk/cnxk_ae.h b/drivers/crypto/cnxk/cnxk_ae.h
index 47f000dd5e..7ad259b7f4 100644
--- a/drivers/crypto/cnxk/cnxk_ae.h
+++ b/drivers/crypto/cnxk/cnxk_ae.h
@@ -723,7 +723,8 @@ cnxk_ae_ecfpm_prep(struct rte_crypto_ecpm_op_param *ecpm,
         * optionally ROUNDUP8(input point(x and y coordinates)).
         * Please note point length is equivalent to prime of the curve
         */
-       if (cpt_ver == ROC_CPT_REVISION_ID_96XX_C0) {
+       if (cpt_ver == ROC_CPT_REVISION_ID_96XX_B0 || cpt_ver == 
ROC_CPT_REVISION_ID_96XX_C0 ||
+           cpt_ver == ROC_CPT_REVISION_ID_98XX) {
                dlen = sizeof(fpm_table_iova) + 3 * p_align + scalar_align;
                memset(dptr, 0, dlen);
                *(uint64_t *)dptr = fpm_table_iova;
-- 
2.25.1

Reply via email to