[v2,0/4] Add PMD for asymmetric cryptography operations using Intel QuickAssist Technology devices
Message ID | 20190318124515.4660-1-arkadiuszx.kusztal@intel.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 521944C94; Mon, 18 Mar 2019 13:46:25 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 5708D4C93 for <dev@dpdk.org>; Mon, 18 Mar 2019 13:46:23 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Mar 2019 05:46:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,493,1544515200"; d="scan'208";a="152712201" Received: from akusztax-mobl.ger.corp.intel.com ([10.104.116.183]) by fmsmga002.fm.intel.com with ESMTP; 18 Mar 2019 05:46:20 -0700 From: Arek Kusztal <arkadiuszx.kusztal@intel.com> To: dev@dpdk.org Cc: akhil.goyal@nxp.com, fiona.trahe@intel.com, damianx.nowak@intel.com, Arek Kusztal <arkadiuszx.kusztal@intel.com> Date: Mon, 18 Mar 2019 13:45:11 +0100 Message-Id: <20190318124515.4660-1-arkadiuszx.kusztal@intel.com> X-Mailer: git-send-email 2.19.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2 0/4] Add PMD for asymmetric cryptography operations using Intel QuickAssist Technology devices X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Series |
Add PMD for asymmetric cryptography operations using Intel QuickAssist Technology devices
|
|
Message
Arkadiusz Kusztal
March 18, 2019, 12:45 p.m. UTC
This patchset adds Poll Mode Driver to use asymmetric cryptography functions using Intel QuickAssist Techology devices. Following functions are available with this patchset: * Modular Exponentiation * Modular Inverse This patch depends on a QAT PF driver for device initialization. See the file docs/guides/cryptodevs/qat.rst for configuration details. Limitations: * Maximum parameter size: 4096 bits - For both modular exponentiaion and modular multiplicative inverse This patchset depends on following patches: - [v2,1/3] cryptodev: add result field to mod exp and inverse operations (http://patchwork.dpdk.org/patch/50256/) - [v2] lib/cryptodev: fix driver name comparison (http://patchwork.dpdk.org/patch/51027/) v2: - added Meson build - fixed segfault on cookie - fixed mod inverse problem Arek Kusztal (4): common/qat: add headers for asymmetric crypto crypto/qat: add asymmetric cryptography PMD crypto/qat: add modular exponentiation to qat asym pmd crypto/qat: add modular multiplicative inverse to qat asym pmd config/common_base | 1 + doc/guides/cryptodevs/qat.rst | 10 + drivers/common/qat/Makefile | 8 + drivers/common/qat/qat_adf/icp_qat_fw_mmp_ids.h | 1538 ++++++++++++++++++++ drivers/common/qat/qat_adf/icp_qat_fw_pke.h | 426 ++++++ .../qat/qat_adf/qat_pke_functionality_arrays.h | 52 + drivers/common/qat/qat_device.h | 12 +- drivers/common/qat/qat_qp.c | 8 + drivers/crypto/qat/meson.build | 5 +- drivers/crypto/qat/qat_asym.c | 407 ++++++ drivers/crypto/qat/qat_asym.h | 106 ++ drivers/crypto/qat/qat_asym_capabilities.h | 42 + drivers/crypto/qat/qat_asym_pmd.c | 310 ++++ drivers/crypto/qat/qat_asym_pmd.h | 46 + drivers/crypto/qat/qat_sym_pmd.c | 1 - drivers/crypto/qat/qat_sym_pmd.h | 3 +- 16 files changed, 2970 insertions(+), 5 deletions(-) create mode 100644 drivers/common/qat/qat_adf/icp_qat_fw_mmp_ids.h create mode 100644 drivers/common/qat/qat_adf/icp_qat_fw_pke.h create mode 100644 drivers/common/qat/qat_adf/qat_pke_functionality_arrays.h create mode 100644 drivers/crypto/qat/qat_asym.c create mode 100644 drivers/crypto/qat/qat_asym.h create mode 100644 drivers/crypto/qat/qat_asym_capabilities.h create mode 100644 drivers/crypto/qat/qat_asym_pmd.c create mode 100644 drivers/crypto/qat/qat_asym_pmd.h
Comments
Hi Fiona, Could you please review/ack this series. Hi Arek, I can see a few checkpatch warnings. Could you please correct those. Thanks, Akhil On 3/18/2019 6:15 PM, Arek Kusztal wrote: > This patchset adds Poll Mode Driver to use asymmetric cryptography > functions using Intel QuickAssist Techology devices. > > Following functions are available with this patchset: > * Modular Exponentiation > * Modular Inverse > > This patch depends on a QAT PF driver for device initialization. See > the file docs/guides/cryptodevs/qat.rst for configuration details. > > Limitations: > * Maximum parameter size: 4096 bits > - For both modular exponentiaion and modular multiplicative inverse > > This patchset depends on following patches: > - [v2,1/3] cryptodev: add result field to mod exp and inverse operations > (http://patchwork.dpdk.org/patch/50256/) > - [v2] lib/cryptodev: fix driver name comparison > (http://patchwork.dpdk.org/patch/51027/) > > v2: > - added Meson build > - fixed segfault on cookie > - fixed mod inverse problem > > Arek Kusztal (4): > common/qat: add headers for asymmetric crypto > crypto/qat: add asymmetric cryptography PMD > crypto/qat: add modular exponentiation to qat asym pmd > crypto/qat: add modular multiplicative inverse to qat asym pmd > > config/common_base | 1 + > doc/guides/cryptodevs/qat.rst | 10 + > drivers/common/qat/Makefile | 8 + > drivers/common/qat/qat_adf/icp_qat_fw_mmp_ids.h | 1538 ++++++++++++++++++++ > drivers/common/qat/qat_adf/icp_qat_fw_pke.h | 426 ++++++ > .../qat/qat_adf/qat_pke_functionality_arrays.h | 52 + > drivers/common/qat/qat_device.h | 12 +- > drivers/common/qat/qat_qp.c | 8 + > drivers/crypto/qat/meson.build | 5 +- > drivers/crypto/qat/qat_asym.c | 407 ++++++ > drivers/crypto/qat/qat_asym.h | 106 ++ > drivers/crypto/qat/qat_asym_capabilities.h | 42 + > drivers/crypto/qat/qat_asym_pmd.c | 310 ++++ > drivers/crypto/qat/qat_asym_pmd.h | 46 + > drivers/crypto/qat/qat_sym_pmd.c | 1 - > drivers/crypto/qat/qat_sym_pmd.h | 3 +- > 16 files changed, 2970 insertions(+), 5 deletions(-) > create mode 100644 drivers/common/qat/qat_adf/icp_qat_fw_mmp_ids.h > create mode 100644 drivers/common/qat/qat_adf/icp_qat_fw_pke.h > create mode 100644 drivers/common/qat/qat_adf/qat_pke_functionality_arrays.h > create mode 100644 drivers/crypto/qat/qat_asym.c > create mode 100644 drivers/crypto/qat/qat_asym.h > create mode 100644 drivers/crypto/qat/qat_asym_capabilities.h > create mode 100644 drivers/crypto/qat/qat_asym_pmd.c > create mode 100644 drivers/crypto/qat/qat_asym_pmd.h >
Hi Akhil, Sure, I will try to eliminate as many checkpatch warnings as possible in v3 then. > -----Original Message----- > From: Akhil Goyal [mailto:akhil.goyal@nxp.com] > Sent: Friday, March 22, 2019 1:34 PM > To: Kusztal, ArkadiuszX <arkadiuszx.kusztal@intel.com>; dev@dpdk.org; > Trahe, Fiona <fiona.trahe@intel.com> > Cc: Nowak, DamianX <damianx.nowak@intel.com> > Subject: Re: [dpdk-dev] [PATCH v2 0/4] Add PMD for asymmetric > cryptography operations using Intel QuickAssist Technology devices > > Hi Fiona, > > Could you please review/ack this series. > > Hi Arek, > > I can see a few checkpatch warnings. Could you please correct those. > > Thanks, > Akhil > > On 3/18/2019 6:15 PM, Arek Kusztal wrote: > > This patchset adds Poll Mode Driver to use asymmetric cryptography > > functions using Intel QuickAssist Techology devices. > > > > Following functions are available with this patchset: > > * Modular Exponentiation > > * Modular Inverse > > > > This patch depends on a QAT PF driver for device initialization. See > > the file docs/guides/cryptodevs/qat.rst for configuration details. > > > > Limitations: > > * Maximum parameter size: 4096 bits > > - For both modular exponentiaion and modular multiplicative > inverse > > > > This patchset depends on following patches: > > - [v2,1/3] cryptodev: add result field to mod exp and inverse > > operations > > (http://patchwork.dpdk.org/patch/50256/) > > - [v2] lib/cryptodev: fix driver name comparison > > (http://patchwork.dpdk.org/patch/51027/) > > > > v2: > > - added Meson build > > - fixed segfault on cookie > > - fixed mod inverse problem > > > > Arek Kusztal (4): > > common/qat: add headers for asymmetric crypto > > crypto/qat: add asymmetric cryptography PMD > > crypto/qat: add modular exponentiation to qat asym pmd > > crypto/qat: add modular multiplicative inverse to qat asym pmd > > > > config/common_base | 1 + > > doc/guides/cryptodevs/qat.rst | 10 + > > drivers/common/qat/Makefile | 8 + > > drivers/common/qat/qat_adf/icp_qat_fw_mmp_ids.h | 1538 > ++++++++++++++++++++ > > drivers/common/qat/qat_adf/icp_qat_fw_pke.h | 426 ++++++ > > .../qat/qat_adf/qat_pke_functionality_arrays.h | 52 + > > drivers/common/qat/qat_device.h | 12 +- > > drivers/common/qat/qat_qp.c | 8 + > > drivers/crypto/qat/meson.build | 5 +- > > drivers/crypto/qat/qat_asym.c | 407 ++++++ > > drivers/crypto/qat/qat_asym.h | 106 ++ > > drivers/crypto/qat/qat_asym_capabilities.h | 42 + > > drivers/crypto/qat/qat_asym_pmd.c | 310 ++++ > > drivers/crypto/qat/qat_asym_pmd.h | 46 + > > drivers/crypto/qat/qat_sym_pmd.c | 1 - > > drivers/crypto/qat/qat_sym_pmd.h | 3 +- > > 16 files changed, 2970 insertions(+), 5 deletions(-) > > create mode 100644 > drivers/common/qat/qat_adf/icp_qat_fw_mmp_ids.h > > create mode 100644 drivers/common/qat/qat_adf/icp_qat_fw_pke.h > > create mode 100644 > drivers/common/qat/qat_adf/qat_pke_functionality_arrays.h > > create mode 100644 drivers/crypto/qat/qat_asym.c > > create mode 100644 drivers/crypto/qat/qat_asym.h > > create mode 100644 drivers/crypto/qat/qat_asym_capabilities.h > > create mode 100644 drivers/crypto/qat/qat_asym_pmd.c > > create mode 100644 drivers/crypto/qat/qat_asym_pmd.h > >