crypto/qat: disable asymmetric crypto on GEN3
authorArek Kusztal <arkadiuszx.kusztal@intel.com>
Wed, 28 Jul 2021 16:18:31 +0000 (17:18 +0100)
committerAkhil Goyal <gakhil@marvell.com>
Fri, 30 Jul 2021 19:08:19 +0000 (21:08 +0200)
This patch disables asymmetric crypto PMD on GEN3 devices.

Fixes: 1f5e4053f9b4 ("common/qat: support GEN3 devices")
Cc: stable@dpdk.org
Signed-off-by: Arek Kusztal <arkadiuszx.kusztal@intel.com>
Acked-by: Fan Zhang <roy.fan.zhang@intel.com>
drivers/crypto/qat/qat_asym_pmd.c

index d844dd8..0c25cce 100644 (file)
@@ -255,6 +255,10 @@ qat_asym_dev_create(struct qat_pci_device *qat_pci_dev,
                QAT_LOG(ERR, "Asymmetric crypto PMD not supported on QAT 4xxx");
                return -EFAULT;
        }
+       if (qat_pci_dev->qat_dev_gen == QAT_GEN3) {
+               QAT_LOG(ERR, "Asymmetric crypto PMD not supported on QAT c4xxx");
+               return -EFAULT;
+       }
        snprintf(name, RTE_CRYPTODEV_NAME_MAX_LEN, "%s_%s",
                        qat_pci_dev->name, "asym");
        QAT_LOG(DEBUG, "Creating QAT ASYM device %s\n", name);