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 85CFE4297D; Tue, 18 Apr 2023 15:40:15 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0BBC5410EF; Tue, 18 Apr 2023 15:40:15 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id 9D837410EA for ; Tue, 18 Apr 2023 15:40:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1681825213; x=1713361213; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=SKjRXDJGhiCLfn3g/bpmkGgHmFrBvc2QaOkWfp6Yse4=; b=AP01gr/ZbBy9MJQnHrtLHgJ4pMqzXe/r48mLCbY+E18DYBrG00rRsror MELVEBMQflJluE1wilEWeNOOF/PU0fRmg4RiawXqkyYj1lxo55g4xsMAO O9NXj9H14040I3Uxnuyb8YZCrdpBcPL5mwvdSn6Ts0ztuCVQzMhCSUlIc +OG/LVAOlb6KZWQoVP/lGuN9amqVS2rF5t9kqUab12kT6AdLEwFgMeSGM zn1GA1Lyz3NCsXnVKfrkLMRC+aipYWSbSdMZ2yl3Bo7w9Ja7+fHvaiWMQ WkzQQ23+VybJcIuOFcmjXYfo5JfUrgLUu30ozs/u2CZpDqsgjjkE6SDjh g==; X-IronPort-AV: E=McAfee;i="6600,9927,10684"; a="342660685" X-IronPort-AV: E=Sophos;i="5.99,207,1677571200"; d="scan'208";a="342660685" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Apr 2023 06:40:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10684"; a="780506875" X-IronPort-AV: E=Sophos;i="5.99,207,1677571200"; d="scan'208";a="780506875" Received: from silpixa00401033.ir.intel.com ([10.55.129.124]) by FMSMGA003.fm.intel.com with ESMTP; 18 Apr 2023 06:40:11 -0700 From: Kevin O'Sullivan To: dev@dpdk.org Cc: kai.ji@intel.com, Kevin O'Sullivan Subject: [PATCH v4 0/2] crypto/qat: add cipher-crc offload feature Date: Tue, 18 Apr 2023 13:39:40 +0000 Message-Id: <20230418133942.2088671-1-kevin.osullivan@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230313142603.234169-1-kevin.osullivan@intel.com> References: <20230313142603.234169-1-kevin.osullivan@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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. v1: * initial version v2: * fixed centos compilation error for missing braces around initializer v3: * updated the file qat.rst with details of new configuration v4: * updated v23.07 release note * moved cipher crc capability check test vectors to top of qat_qp.c and made the vectors static const * changed log string to be all on one line in qat_device.c * changed word parameter to devargs in qat.rst Kevin O'Sullivan (2): crypto/qat: add cipher-crc offload support to fw interface crypto/qat: support cipher-crc offload doc/guides/cryptodevs/qat.rst | 23 +++ doc/guides/rel_notes/release_23_07.rst | 4 + 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 | 9 +- drivers/common/qat/qat_device.h | 3 +- drivers/common/qat/qat_qp.c | 177 +++++++++++++++++ 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 +- 18 files changed, 620 insertions(+), 17 deletions(-) -- 2.34.1