* [dpdk-dev] [PATCH] drivers/qat: fix unused asymmetric crypto pmd on gen3
@ 2021-07-12 8:16 Arek Kusztal
2021-07-18 9:50 ` [dpdk-dev] [EXT] " Akhil Goyal
0 siblings, 1 reply; 2+ messages in thread
From: Arek Kusztal @ 2021-07-12 8:16 UTC (permalink / raw)
To: dev; +Cc: gakhil, fiona.trahe, roy.fan.zhang, Arek Kusztal, stable
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>
---
drivers/crypto/qat/qat_asym_pmd.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/crypto/qat/qat_asym_pmd.c b/drivers/crypto/qat/qat_asym_pmd.c
index a2c8aca2c1..0ebd1212a0 100644
--- a/drivers/crypto/qat/qat_asym_pmd.c
+++ b/drivers/crypto/qat/qat_asym_pmd.c
@@ -251,6 +251,11 @@ qat_asym_dev_create(struct qat_pci_device *qat_pci_dev,
struct rte_cryptodev *cryptodev;
struct qat_asym_dev_private *internals;
+ 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.17.1
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-07-18 9:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-12 8:16 [dpdk-dev] [PATCH] drivers/qat: fix unused asymmetric crypto pmd on gen3 Arek Kusztal
2021-07-18 9:50 ` [dpdk-dev] [EXT] " Akhil Goyal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).