From 135e3a4046793e7f68a96d61fc6f0c03c365863c Mon Sep 17 00:00:00 2001 From: Arek Kusztal Date: Wed, 28 Jul 2021 17:18:31 +0100 Subject: [PATCH] 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 --- drivers/crypto/qat/qat_asym_pmd.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.20.1