From: Vidya Sagar Velumuri <vvelum...@marvell.com>

Check for supported SG version in SE engine capabilities.

Signed-off-by: Vidya Sagar Velumuri <vvelum...@marvell.com>
---
 drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c 
b/drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c
index ac4a8c1572..fd91dec08f 100644
--- a/drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c
+++ b/drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c
@@ -1619,7 +1619,7 @@ static void
 cn10k_crypto_caps_add(struct rte_cryptodev_capabilities cnxk_caps[],
                     union cpt_eng_caps *hw_caps, int *cur_pos)
 {
-       if (hw_caps->sg_ver2) {
+       if (hw_caps[CPT_ENG_TYPE_SE].sg_ver2) {
                CPT_CAPS_ADD(cnxk_caps, cur_pos, hw_caps, sm3);
                CPT_CAPS_ADD(cnxk_caps, cur_pos, hw_caps, sm4);
        }
-- 
2.25.1

Reply via email to