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 04EB041E0C; Mon, 13 Mar 2023 15:26:11 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DD80A406BC; Mon, 13 Mar 2023 15:26:10 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 5DA0740151 for ; Mon, 13 Mar 2023 15:26:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678717569; x=1710253569; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=aXGLnVxtw/C7Mqx9m/N0XPJsLZQPpCfAkTjlpSJ5cO8=; b=QOF/fnpiUJl5j7UiH4Hr8DYO00qkdPxLX2Iw+fGcpZ1YoolmSn5KqgMM JlF3SI3YJLZklas9zpcF/KpN5HbwLEaZM78PCRTN6AwIXYeRWuT5WAYc+ ebxoW7PqPvm181GxdanULeiaMpLCGVX9OI3ZndSMHF62e8sxLWBgtoNZx 8/xWmRhzSr8SHCAAQVSM0k6GT/hCirY5rFoSkvcFCQY1RZSS/kKHL3uTv o8RSNjLYtc3dFnBsvbA9+h18bVygq92azJ4n3Rm6Bln8pXVeonM7NMqBp Xzcs4BFSOF2zp8B4XKfc7YErTokOWTxa9f1TqTD+H1mGPYkc9eKv+wEy1 Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10648"; a="316805147" X-IronPort-AV: E=Sophos;i="5.98,257,1673942400"; d="scan'208";a="316805147" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Mar 2023 07:26:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10648"; a="747623551" X-IronPort-AV: E=Sophos;i="5.98,257,1673942400"; d="scan'208";a="747623551" Received: from silpixa00401033.ir.intel.com ([10.55.129.106]) by fmsmga004.fm.intel.com with ESMTP; 13 Mar 2023 07:26:07 -0700 From: Kevin O'Sullivan To: dev@dpdk.org Cc: kai.ji@intel.com, Kevin O'Sullivan Subject: [PATCH v3 0/2] crypto/qat: add cipher-crc offload feature Date: Mon, 13 Mar 2023 14:26:01 +0000 Message-Id: <20230313142603.234169-1-kevin.osullivan@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230309143359.67789-1-kevin.osullivan@intel.com> References: <20230309143359.67789-1-kevin.osullivan@intel.com> 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 for DOCSIS 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 previous code-path is still retained for QAT firmware 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. v3: updated the file qat.rst with details of new configuration Kevin O'Sullivan (2): crypto/qat: added cipher-crc offload support crypto/qat: added cipher-crc cap check doc/guides/cryptodevs/qat.rst | 23 +++ 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 | 196 ++++++++++++++++++- drivers/crypto/qat/qat_sym_session.h | 21 +- 17 files changed, 600 insertions(+), 18 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.