From patchwork Tue Nov 2 13:49:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ji, Kai" X-Patchwork-Id: 103489 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9A2EEA0C4E; Tue, 2 Nov 2021 14:49:30 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E92B241153; Tue, 2 Nov 2021 14:49:24 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id BA5204069F for ; Tue, 2 Nov 2021 14:49:22 +0100 (CET) X-IronPort-AV: E=McAfee;i="6200,9189,10155"; a="231518266" X-IronPort-AV: E=Sophos;i="5.87,203,1631602800"; d="scan'208";a="231518266" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Nov 2021 06:49:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,203,1631602800"; d="scan'208";a="449393496" Received: from silpixa00400272.ir.intel.com (HELO silpixa00400272.ger.corp.intel.com) ([10.237.223.111]) by orsmga006.jf.intel.com with ESMTP; 02 Nov 2021 06:49:15 -0700 From: Kai Ji To: dev@dpdk.org Cc: Kai Ji Date: Tue, 2 Nov 2021 13:49:05 +0000 Message-Id: <20211102134913.21148-1-kai.ji@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211101231257.7629-1-kai.ji@intel.com> References: <20211101231257.7629-1-kai.ji@intel.com> Subject: [dpdk-dev] [dpdk-dev v3 0/8] drivers/qat: QAT symmetric crypto datapatch rework X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This patch reworks QAT symmetric crypto datapatch implementation where each generation request building separated and the crypto operation under the raw datapath api implementation are unified. In addtion this patchset also enables QAT OOP support in raw datapath api implementation. This patch depends on http://patchwork.dpdk.org/project/dpdk/cover/20211027155055.32264-1-kai.ji@intel.com/ v3: - sperate a single patch 6 to two different patches v2: - review comments addressed Kai Ji (8): crypro/qat: qat driver refactor skeleton crypto/qat: qat driver sym op refactor crypto/qat: qat driver asym op refactor crypto/qat: qat driver session method rework crypto/qat: qat driver datapath rework crypto/qat: support sgl oop operation app/test: cryptodev test fix crypto/qat: qat driver rework clean up app/test/test_cryptodev.c | 58 +- drivers/common/qat/meson.build | 4 +- drivers/common/qat/qat_device.c | 2 +- drivers/common/qat/qat_qp.c | 40 +- drivers/common/qat/qat_qp.h | 70 +- drivers/compress/qat/qat_comp_pmd.c | 12 +- drivers/crypto/qat/dev/qat_asym_pmd_gen1.c | 7 + drivers/crypto/qat/dev/qat_crypto_pmd_gen2.c | 90 ++ drivers/crypto/qat/dev/qat_crypto_pmd_gen3.c | 487 +++++++++ drivers/crypto/qat/dev/qat_crypto_pmd_gen4.c | 253 +++++ drivers/crypto/qat/dev/qat_crypto_pmd_gens.h | 911 +++++++++++++++++ drivers/crypto/qat/dev/qat_sym_pmd_gen1.c | 939 ++++++++++++++++++ drivers/crypto/qat/qat_asym.c | 786 +++++++++------ drivers/crypto/qat/qat_asym.h | 77 +- drivers/crypto/qat/qat_asym_pmd.c | 231 ----- drivers/crypto/qat/qat_asym_pmd.h | 54 - drivers/crypto/qat/qat_crypto.c | 1 + drivers/crypto/qat/qat_crypto.h | 14 +- drivers/crypto/qat/qat_sym.c | 978 ++++++------------ drivers/crypto/qat/qat_sym.h | 141 ++- drivers/crypto/qat/qat_sym_hw_dp.c | 983 ------------------- drivers/crypto/qat/qat_sym_pmd.c | 251 ----- drivers/crypto/qat/qat_sym_pmd.h | 95 -- drivers/crypto/qat/qat_sym_session.c | 114 +-- drivers/crypto/qat/qat_sym_session.h | 8 +- 25 files changed, 3861 insertions(+), 2745 deletions(-) delete mode 100644 drivers/crypto/qat/qat_asym_pmd.c delete mode 100644 drivers/crypto/qat/qat_asym_pmd.h delete mode 100644 drivers/crypto/qat/qat_sym_hw_dp.c delete mode 100644 drivers/crypto/qat/qat_sym_pmd.c delete mode 100644 drivers/crypto/qat/qat_sym_pmd.h