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 EAADA41E22; Thu, 9 Mar 2023 15:34:08 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CF2E8427F2; Thu, 9 Mar 2023 15:34:08 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 4AE6640695 for ; Thu, 9 Mar 2023 15:34:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678372447; x=1709908447; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=2ndH8SqEdBYFaq6FnaCvTyzYlY/As1D+V6PCc6A16GQ=; b=M0kP4Fou8DR+lbzgmhh0hB8qxsIjKaIIQ/aqlPf/LIS8OXZ+hY8tZAYc EO4muWXOZkxbRk1892fLdba+NZKVGWiI4F4T3Nu0MDkZGJCqYqAMFuxad sYsVP8dV71LqYEK79GDZTPf+KAUl4O7DFhILkAoYkuRZx4ndwrSonGyl7 ihSGgqJ4BzJNe0oxhUG3ahFHTaIJ3GhKYaO79XqiraMvMSnjrp6Dvwiox fE6yg2su2rQG8w7iHIOsqUTn0cCCKVWr6FcTUraYTOalHVWHukczizfIi du/toW6qIF6CA+aWM62zaJgBChfTo7G2ri7w0iXqoCoBe7JlCqEXbbN+4 w==; X-IronPort-AV: E=McAfee;i="6500,9779,10643"; a="336467226" X-IronPort-AV: E=Sophos;i="5.98,246,1673942400"; d="scan'208";a="336467226" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Mar 2023 06:34:06 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10643"; a="746334120" X-IronPort-AV: E=Sophos;i="5.98,246,1673942400"; d="scan'208";a="746334120" Received: from silpixa00401033.ir.intel.com ([10.55.129.113]) by fmsmga004.fm.intel.com with ESMTP; 09 Mar 2023 06:34:05 -0800 From: Kevin O'Sullivan To: dev@dpdk.org Cc: kai.ji@intel.com, Kevin O'Sullivan Subject: [PATCH v2 0/2] crypto/qat: add cipher-crc offload feature Date: Thu, 9 Mar 2023 14:33:57 +0000 Message-Id: <20230309143359.67789-1-kevin.osullivan@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230308121258.88708-1-kevin.osullivan@intel.com> References: <20230308121258.88708-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. v2: fixed centos compilation error for missing braces around initializer 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.