Extend Arm PMD gating in ipsec_mb_create() to permit
IPSEC_MB_PMD_TYPE_AESNI_MB and IPSEC_MB_PMD_TYPE_AESNI_GCM
in addition to existing SNOW3G and ZUC.

This removes -ENOTSUP rejection for crypto_aesni_mb and
crypto_aesni_gcm on Arm, enabling these vdevs to probe and run
when backed by a compatible ipsec-mb library.

Signed-off-by: Wathsala Vithanage <[email protected]>
---
 drivers/crypto/ipsec_mb/ipsec_mb_private.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/crypto/ipsec_mb/ipsec_mb_private.c 
b/drivers/crypto/ipsec_mb/ipsec_mb_private.c
index b4c36e7f58..468d77fead 100644
--- a/drivers/crypto/ipsec_mb/ipsec_mb_private.c
+++ b/drivers/crypto/ipsec_mb/ipsec_mb_private.c
@@ -72,7 +72,9 @@ ipsec_mb_create(struct rte_vdev_device *vdev,
 
 #if defined(RTE_ARCH_ARM)
        if ((pmd_type != IPSEC_MB_PMD_TYPE_SNOW3G) &&
-               (pmd_type != IPSEC_MB_PMD_TYPE_ZUC))
+               (pmd_type != IPSEC_MB_PMD_TYPE_ZUC) &&
+               (pmd_type != IPSEC_MB_PMD_TYPE_AESNI_MB) &&
+               (pmd_type != IPSEC_MB_PMD_TYPE_AESNI_GCM))
                return -ENOTSUP;
 #endif
 
-- 
2.43.0

Reply via email to