From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3C29C41E1F; Wed, 8 Mar 2023 13:13:16 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 001AD40FAE; Wed, 8 Mar 2023 13:13:14 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 1D09840ED6 for ; Wed, 8 Mar 2023 13:13:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678277593; x=1709813593; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=UVUKZuV6Tt2EoWPVp85hHukyW+/2NBU9PD64VcoHLCc=; b=NdmGtcp7qdi1nK+ANTmfvQjxuzZTRMSl6YE3AcObfPtZjioOcBtTCXzE G3RLsPrrbaDOwMG4rNuAOhADYX6XcMYPKTJqPnw1b4TTH5QFJ9+BIGPDL 3Tc5TdcLNvW+6fbedyq5j3d2TZNMOW4vmkv7/YGjkJNH5S8+u1OL9fcn3 /0fg/P6taLDUKgUNVHMqqRIds9C5cuUeFE7THnJg200WyKTeTCBpzU3bK 6eXoo5kTCw2FmuOJibejcqpa+cAoPBTMMwWsp4cFWYcP5Vr+OqQDL+oyZ fCb4Dj58wxUBZTG21KpKueyyWTb01AM7VBiivwxwGKeIcnXOFmidyicPH Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10642"; a="338462699" X-IronPort-AV: E=Sophos;i="5.98,243,1673942400"; d="scan'208";a="338462699" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Mar 2023 04:13:10 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10642"; a="626895221" X-IronPort-AV: E=Sophos;i="5.98,243,1673942400"; d="scan'208";a="626895221" Received: from silpixa00401033.ir.intel.com ([10.55.128.28]) by orsmga003.jf.intel.com with ESMTP; 08 Mar 2023 04:13:03 -0800 From: Kevin O'Sullivan To: dev@dpdk.org Cc: kai.ji@intel.com, Kevin O'Sullivan Subject: [PATCH 0/2] crypto/qat: added cipher-crc offload feature Date: Wed, 8 Mar 2023 12:12:56 +0000 Message-Id: <20230308121258.88708-1-kevin.osullivan@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 patchset adds support to the QAT PMD for combined cipher-crc processing on the QAT device. The current QAT PMD implementation of cipher-crc calculates CRC in software and uses QAT for encryption/decryption offload. Note: The code-path is still retained for QAT versions without support for combined Cipher-CRC offload. - Support has been added to DPDK QAT PMD to enable the use of the cipher-crc offload feature on gen2/gen3/gen4 QAT devices. - A cipher-crc offload capability check has been added to the queue pair setup function to determine if the feature is supported on the QAT device. Kevin O'Sullivan (2): crypto/qat: added cipher-crc offload support crypto/qat: added cipher-crc cap check drivers/common/qat/qat_adf/icp_qat_fw.h | 1 - drivers/common/qat/qat_adf/icp_qat_fw_la.h | 3 +- drivers/common/qat/qat_adf/icp_qat_hw.h | 133 +++++++++++++ drivers/common/qat/qat_device.c | 12 +- drivers/common/qat/qat_device.h | 3 +- drivers/common/qat/qat_qp.c | 157 +++++++++++++++ drivers/common/qat/qat_qp.h | 5 + drivers/crypto/qat/dev/qat_crypto_pmd_gen2.c | 2 +- drivers/crypto/qat/dev/qat_crypto_pmd_gens.h | 24 ++- drivers/crypto/qat/dev/qat_sym_pmd_gen1.c | 4 + drivers/crypto/qat/qat_crypto.c | 22 ++- drivers/crypto/qat/qat_crypto.h | 1 + drivers/crypto/qat/qat_sym.c | 4 + drivers/crypto/qat/qat_sym.h | 7 +- drivers/crypto/qat/qat_sym_session.c | 194 +++++++++++++++++++ drivers/crypto/qat/qat_sym_session.h | 21 +- 16 files changed, 576 insertions(+), 17 deletions(-) -- 2.34.1 -------------------------------------------------------------- Intel Research and Development Ireland Limited Registered in Ireland Registered Office: Collinstown Industrial Park, Leixlip, County Kildare Registered Number: 308263 This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.