patches for DPDK stable branches
 help / color / mirror / Atom feed
* Re: [dpdk-stable] [EXT] [PATCH 2/2] crypto/qat: fix asymmetric crypto pmd create on gen3
       [not found] ` <20210728161831.6807-3-arkadiuszx.kusztal@intel.com>
@ 2021-07-30 19:19   ` Akhil Goyal
  0 siblings, 0 replies; only message in thread
From: Akhil Goyal @ 2021-07-30 19:19 UTC (permalink / raw)
  To: Arek Kusztal, dev; +Cc: fiona.trahe, roy.fan.zhang, 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 | 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 d4680c3847..4891766471 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.30.2
Applied to dpdk-next-crypto



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-30 19:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20210728161831.6807-1-arkadiuszx.kusztal@intel.com>
     [not found] ` <20210728161831.6807-3-arkadiuszx.kusztal@intel.com>
2021-07-30 19:19   ` [dpdk-stable] [EXT] [PATCH 2/2] crypto/qat: fix asymmetric crypto pmd create on gen3 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).