From: Arek Kusztal Date: Wed, 28 Jul 2021 16:18:31 +0000 (+0100) Subject: crypto/qat: disable asymmetric crypto on GEN3 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=135e3a4046793e7f68a96d61fc6f0c03c365863c;p=dpdk.git crypto/qat: disable asymmetric crypto on GEN3 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 Acked-by: Fan Zhang --- diff --git a/drivers/crypto/qat/qat_asym_pmd.c b/drivers/crypto/qat/qat_asym_pmd.c index d844dd85bf..0c25cce09e 100644 --- a/drivers/crypto/qat/qat_asym_pmd.c +++ b/drivers/crypto/qat/qat_asym_pmd.c @@ -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);