From patchwork Tue Feb 8 18:14:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ji, Kai" X-Patchwork-Id: 107031 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 2BD22A0352; Tue, 8 Feb 2022 19:15:00 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id ED33641153; Tue, 8 Feb 2022 19:14:59 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 8112741140 for ; Tue, 8 Feb 2022 19:14:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644344098; x=1675880098; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=eFSTfD/zdMl2nvd3kh+PW6dII5GjQxQG7tDmqE7S6gg=; b=ielV/r0Ta8v22yWfOBQcFMrDDd+/My4QqgvN4ENcLrvsPpM2IsP0h8za m3otfpKuvyaxz9ySrhnJsIo2re7xExIM3AV5UUhWkoYQqCqG5h6WYjVzU phHIIi1IipebP8vRsx/8JILLjl3o18p80ilqbxzVZegPZyXe71BSo6oEB o4RPh34H0X+N1ssgXZbuijmb2M7MKnMfTv2NBXdj7izG6Ts2WHKsdRuUz Nl4tVRSmLWttX1E7eSL8NMjbG8lO4zilwxc7QXXSwYlKxB9w9KEe4ftO2 w5ikDeWce3313jBSjpn06Y6unNf38JGaNjnYQS5LrjGtVMQt7DIVlVUzj g==; X-IronPort-AV: E=McAfee;i="6200,9189,10252"; a="248962980" X-IronPort-AV: E=Sophos;i="5.88,353,1635231600"; d="scan'208";a="248962980" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2022 10:14:57 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,353,1635231600"; d="scan'208";a="540720079" Received: from silpixa00400465.ir.intel.com ([10.55.129.31]) by orsmga008.jf.intel.com with ESMTP; 08 Feb 2022 10:14:56 -0800 From: Kai Ji To: dev@dpdk.org Cc: gakhil@marvell.com, Kai Ji Subject: [dpdk-dev v7 00/10] drivers/qat: QAT symmetric crypto datapatch rework Date: Wed, 9 Feb 2022 02:14:44 +0800 Message-Id: <20220208181454.69121-1-kai.ji@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220204185057.29893-11-kai.ji@intel.com> References: <20220204185057.29893-11-kai.ji@intel.com> 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 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. v7: - fix of pointer cast compile error in x86 v6: - fix of pointer cast error in x86 - rebase to the lastest for-main v5: - rebase to the latest for-main - patchset reconstruct v4: - patchset break down and reconstruct v3: - sperate a single patch 6 to two different patches v2: - review comments addressed Kai Ji (10): common/qat: define build op request and dequeue op crypto/qat: sym build op request specific implementation crypto/qat: qat generation specific enqueue crypto/qat: rework session APIs crypto/qat: rework asymmetric crypto build operation crypto/qat: unify qat sym pmd apis crypto/qat: unify qat asym pmd apis crypto/qat: op burst data path rework crypto/qat: raw dp api integration crypto/qat: support out of place SG list drivers/common/qat/meson.build | 6 +- drivers/common/qat/qat_device.c | 4 +- drivers/common/qat/qat_qp.c | 42 +- drivers/common/qat/qat_qp.h | 54 +- drivers/compress/qat/qat_comp_pmd.c | 14 +- drivers/crypto/qat/dev/qat_asym_pmd_gen1.c | 9 +- drivers/crypto/qat/dev/qat_crypto_pmd_gen2.c | 93 +- drivers/crypto/qat/dev/qat_crypto_pmd_gen3.c | 490 ++++++++- drivers/crypto/qat/dev/qat_crypto_pmd_gen4.c | 257 ++++- drivers/crypto/qat/dev/qat_crypto_pmd_gens.h | 913 ++++++++++++++++- drivers/crypto/qat/dev/qat_sym_pmd_gen1.c | 942 +++++++++++++++++- drivers/crypto/qat/qat_asym.c | 762 ++++++++------ drivers/crypto/qat/qat_asym.h | 79 +- drivers/crypto/qat/qat_asym_pmd.c | 231 ----- drivers/crypto/qat/qat_asym_pmd.h | 54 - drivers/crypto/qat/qat_crypto.h | 16 +- drivers/crypto/qat/qat_sym.c | 979 ++++++------------ drivers/crypto/qat/qat_sym.h | 148 ++- 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 | 115 +-- drivers/crypto/qat/qat_sym_session.h | 15 +- 23 files changed, 3813 insertions(+), 2739 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 --- 2.17.1