From patchwork Tue Dec 20 14:32:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tejasree Kondoj X-Patchwork-Id: 121074 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 5FE59A0545; Tue, 20 Dec 2022 15:32:41 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 04C7B40685; Tue, 20 Dec 2022 15:32:41 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id C815340395 for ; Tue, 20 Dec 2022 15:32:39 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2BKEN2CV016597 for ; Tue, 20 Dec 2022 06:32:39 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=nPbmkd+y83muNWeU4VPPsk0JJVvfaqusTVtXpHctjxw=; b=hd4y3pTvFB3S2dzAu0l6WL8uDdQzslXhskOsY5u2Bo9npWoKCFrewbW20gN7W0vo2v1N P9m5QvRtvSRzzIRfUYt+Pb8NssSe2aBD2kdwxLxj46eZBFT7fgKlBzpPh2OVnD2ysGHV A1rHRAeaKyBLBPXRb0ELLUSNDLMYX4wFwZSI122GMq0j5KEx76h6IXWXiQFlRf1s82sc gpB006NFP7Od2bR65lGwAj8nNZJcKUNjOioNRdQLPwLO/rhUT5qMy5Jb/AQMeZ/YwhmI mfMmJ3tD3NJU00vj7piZpLyrEChjshRBj2FrRaoycaPkEPikoCttYmPSf15i1347/75Z lg== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3mhe5rnb50-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Tue, 20 Dec 2022 06:32:38 -0800 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 20 Dec 2022 06:32:36 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.42 via Frontend Transport; Tue, 20 Dec 2022 06:32:36 -0800 Received: from hyd1554.marvell.com (unknown [10.29.57.11]) by maili.marvell.com (Postfix) with ESMTP id B8BEA3F7063; Tue, 20 Dec 2022 06:32:33 -0800 (PST) From: Tejasree Kondoj To: Akhil Goyal CC: Anoob Joseph , Jerin Jacob , Nithin Dabilpuram , Rahul Bhansali , Vidya Sagar Velumuri , Gowrishankar Muthukrishnan , Volodymyr Fialko , Aakash Sasidharan , Subject: [PATCH 00/17] fixes and improvements to cnxk crytpo PMD Date: Tue, 20 Dec 2022 20:02:15 +0530 Message-ID: <20221220143232.2519650-1-ktejasree@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Proofpoint-GUID: Av7W9Nw-p9hoTdskfkAwnWJyIf10NdAO X-Proofpoint-ORIG-GUID: Av7W9Nw-p9hoTdskfkAwnWJyIf10NdAO X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-12-20_05,2022-12-20_01,2022-06-22_01 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 series adds improvements and support for SHA3, IPsec scatter gather mode in cnxk crypto PMD. Aakash Sasidharan (1): common/cnxk: generate opad and ipad in driver Anoob Joseph (3): common/cnxk: perform LF fini ops only when allocated crypto/cnxk: remove null check of session priv common/cnxk: remove salt from session Archana Muniganti (1): crypto/cnxk: add CN9K IPsec SG support Gowrishankar Muthukrishnan (1): crypto/cnxk: fix incorrect digest for an empty input data Tejasree Kondoj (5): crypto/cnxk: support truncated digest length crypto/octeontx: support truncated digest size crypto/cnxk: set device ops to null in PCI remove crypto/cnxk: add CTX for non IPsec operations crypto/cnxk: set salt in dptr as part of IV Vidya Sagar Velumuri (2): crypto/cnxk: update resp len calculation for IPv6 crypto/cnxk: update crypto completion code handling Volodymyr Fialko (4): crypto/cnxk: add context to passthrough instruction crypto/cnxk: add queue pair check to meta set crypto/cnxk: add support for SHA3 hash common/cnxk: skip hmac hash precomputation doc/guides/cryptodevs/cnxk.rst | 8 + doc/guides/cryptodevs/features/cn10k.ini | 8 + doc/guides/cryptodevs/features/cn9k.ini | 8 + drivers/common/cnxk/cnxk_security.c | 8 +- drivers/common/cnxk/roc_api.h | 1 + drivers/common/cnxk/roc_cpt.c | 3 + drivers/common/cnxk/roc_cpt_sg.h | 37 ++ drivers/common/cnxk/roc_hash.c | 12 +- drivers/common/cnxk/roc_hash.h | 2 +- drivers/common/cnxk/roc_ie_on.h | 9 +- drivers/common/cnxk/roc_platform.h | 3 +- drivers/common/cnxk/roc_se.c | 150 ++++- drivers/common/cnxk/roc_se.h | 70 +-- drivers/common/cnxk/version.map | 1 + drivers/common/cpt/cpt_ucode.h | 17 +- drivers/crypto/cnxk/cn10k_cryptodev.c | 1 + drivers/crypto/cnxk/cn10k_cryptodev_ops.c | 51 +- drivers/crypto/cnxk/cn10k_ipsec.c | 11 +- drivers/crypto/cnxk/cn10k_ipsec.h | 1 + drivers/crypto/cnxk/cn10k_ipsec_la_ops.h | 1 + drivers/crypto/cnxk/cn9k_cryptodev.c | 1 + drivers/crypto/cnxk/cn9k_cryptodev_ops.c | 89 +-- drivers/crypto/cnxk/cn9k_ipsec_la_ops.h | 207 ++++++- drivers/crypto/cnxk/cnxk_cryptodev.h | 2 +- .../crypto/cnxk/cnxk_cryptodev_capabilities.c | 212 ++++++- drivers/crypto/cnxk/cnxk_cryptodev_ops.c | 65 ++- drivers/crypto/cnxk/cnxk_cryptodev_ops.h | 32 +- drivers/crypto/cnxk/cnxk_se.h | 551 +++++------------- drivers/crypto/cnxk/cnxk_sg.h | 273 +++++++++ .../octeontx/otx_cryptodev_capabilities.c | 48 +- 30 files changed, 1224 insertions(+), 658 deletions(-) create mode 100644 drivers/common/cnxk/roc_cpt_sg.h create mode 100644 drivers/crypto/cnxk/cnxk_sg.h