DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] crypto/qat: enable asymmetric crypto on gen4 device
@ 2022-04-07  9:47 Arek Kusztal
  2022-05-10 14:59 ` Ji, Kai
  0 siblings, 1 reply; 3+ messages in thread
From: Arek Kusztal @ 2022-04-07  9:47 UTC (permalink / raw)
  To: dev; +Cc: gakhil, roy.fan.zhang, Arek Kusztal

This commit enables asymmetric crypto in generation four
devices (4xxx).

Signed-off-by: Arek Kusztal <arkadiuszx.kusztal@intel.com>
---
 doc/guides/cryptodevs/qat.rst                |  1 +
 drivers/crypto/qat/dev/qat_crypto_pmd_gen4.c | 12 ++++++++----
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/doc/guides/cryptodevs/qat.rst b/doc/guides/cryptodevs/qat.rst
index 785e041324..18ad1646a4 100644
--- a/doc/guides/cryptodevs/qat.rst
+++ b/doc/guides/cryptodevs/qat.rst
@@ -169,6 +169,7 @@ poll mode crypto driver support for the following hardware accelerator devices:
 * ``Intel QuickAssist Technology C3xxx``
 * ``Intel QuickAssist Technology D15xx``
 * ``Intel QuickAssist Technology C4xxx``
+* ``Intel QuickAssist Technology 4xxx``
 
 The QAT ASYM PMD has support for:
 
diff --git a/drivers/crypto/qat/dev/qat_crypto_pmd_gen4.c b/drivers/crypto/qat/dev/qat_crypto_pmd_gen4.c
index 3d8b2e377c..a9457d9278 100644
--- a/drivers/crypto/qat/dev/qat_crypto_pmd_gen4.c
+++ b/drivers/crypto/qat/dev/qat_crypto_pmd_gen4.c
@@ -375,8 +375,12 @@ RTE_INIT(qat_sym_crypto_gen4_init)
 
 RTE_INIT(qat_asym_crypto_gen4_init)
 {
-	qat_asym_gen_dev_ops[QAT_GEN4].cryptodev_ops = NULL;
-	qat_asym_gen_dev_ops[QAT_GEN4].get_capabilities = NULL;
-	qat_asym_gen_dev_ops[QAT_GEN4].get_feature_flags = NULL;
-	qat_asym_gen_dev_ops[QAT_GEN4].set_session = NULL;
+	qat_asym_gen_dev_ops[QAT_GEN4].cryptodev_ops =
+			&qat_asym_crypto_ops_gen1;
+	qat_asym_gen_dev_ops[QAT_GEN4].get_capabilities =
+			qat_asym_crypto_cap_get_gen1;
+	qat_asym_gen_dev_ops[QAT_GEN4].get_feature_flags =
+			qat_asym_crypto_feature_flags_get_gen1;
+	qat_asym_gen_dev_ops[QAT_GEN4].set_session =
+			qat_asym_crypto_set_session_gen1;
 }
-- 
2.30.2


^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [PATCH] crypto/qat: enable asymmetric crypto on gen4 device
  2022-04-07  9:47 [PATCH] crypto/qat: enable asymmetric crypto on gen4 device Arek Kusztal
@ 2022-05-10 14:59 ` Ji, Kai
  2022-05-26 16:33   ` Akhil Goyal
  0 siblings, 1 reply; 3+ messages in thread
From: Ji, Kai @ 2022-05-10 14:59 UTC (permalink / raw)
  To: Kusztal, ArkadiuszX, dev

Acked-by: Ji, Kai <kai.ji@intel.com>

> -----Original Message-----
> From: Arek Kusztal <arkadiuszx.kusztal@intel.com>
> Sent: Thursday, April 7, 2022 10:47 AM
> To: dev@dpdk.org
> Cc: gakhil@marvell.com; Zhang, Roy Fan <roy.fan.zhang@intel.com>; Kusztal,
> ArkadiuszX <arkadiuszx.kusztal@intel.com>
> Subject: [PATCH] crypto/qat: enable asymmetric crypto on gen4 device
> 
> This commit enables asymmetric crypto in generation four devices (4xxx).
> 
> Signed-off-by: Arek Kusztal <arkadiuszx.kusztal@intel.com>
> ---
> 2.30.2


^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [PATCH] crypto/qat: enable asymmetric crypto on gen4 device
  2022-05-10 14:59 ` Ji, Kai
@ 2022-05-26 16:33   ` Akhil Goyal
  0 siblings, 0 replies; 3+ messages in thread
From: Akhil Goyal @ 2022-05-26 16:33 UTC (permalink / raw)
  To: Ji, Kai, Kusztal, ArkadiuszX, dev

> Acked-by: Ji, Kai <kai.ji@intel.com>
Please be consistent in Acks
Corrected this to 
Acked-by: Kai Ji <kai.ji@intel.com>

> 
> > This commit enables asymmetric crypto in generation four devices (4xxx).
> >
> > Signed-off-by: Arek Kusztal <arkadiuszx.kusztal@intel.com>

Applied to dpdk-next-crypto

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-05-26 16:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-07  9:47 [PATCH] crypto/qat: enable asymmetric crypto on gen4 device Arek Kusztal
2022-05-10 14:59 ` Ji, Kai
2022-05-26 16:33   ` 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).