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 A0017438E9; Wed, 17 Jan 2024 11:31:16 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2F8D8402B0; Wed, 17 Jan 2024 11:31:16 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 36468402A6 for ; Wed, 17 Jan 2024 11:31:15 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40H7jMDJ028463 for ; Wed, 17 Jan 2024 02:31:14 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s= pfpt0220; bh=d5eK/SxqP18Z/ruvxJ6IXEHyvKDpdyfyb/gl/+rh1GU=; b=QEK Cpq1RLX8MjSRrhnZbs5LL6pu/b4IHxXr50/i0+9cmqxZ3bYzf4LOXp1KlMLE4iAm Sao50Y2q/5TtaEZplv0NF5yBvGIGH9VFIksfy+jwnRRA7aNrPudQMuzcivUpxPKX ZBhwMZfn8VL0gSLuOGmSvc5io4hkpn8Ho2yjHzhju1aZoZrt5qGWquyy3ynKzwM8 W4ihY9q9WGyyGdXXMB3hj4aR0lUIvVebvs5ZN+qiGKKYbKYglB9Au/djcCDvKfuY H+GzrfObbLqKAQcJMAf0fWZLWHXPf7XZhA79tK5yxATIMhdzlz6QkkIc8TzTTMw6 RV/rncIRCJUVUY1jx7Q== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3vpask8f42-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Wed, 17 Jan 2024 02:31:14 -0800 (PST) Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Wed, 17 Jan 2024 02:31:12 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Wed, 17 Jan 2024 02:31:12 -0800 Received: from BG-LT92004.corp.innovium.com (unknown [10.28.22.179]) by maili.marvell.com (Postfix) with ESMTP id B70293F7048; Wed, 17 Jan 2024 02:31:10 -0800 (PST) From: Anoob Joseph To: Akhil Goyal CC: Jerin Jacob , Vidya Sagar Velumuri , Tejasree Kondoj , Subject: [PATCH v3 00/24] Fixes and improvements in crypto cnxk Date: Wed, 17 Jan 2024 16:00:45 +0530 Message-ID: <20240117103109.922-1-anoobj@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240102045417.115-1-anoobj@marvell.com> References: <20240102045417.115-1-anoobj@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: FjYnlRPQ3vknzou1_-p_m4fURCZhPvzz X-Proofpoint-GUID: FjYnlRPQ3vknzou1_-p_m4fURCZhPvzz X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-01-17_05,2024-01-17_01,2023-05-22_02 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 Add following features - TLS record processing offload (TLS 1.2-1.3, DTLS 1.2) - Rx inject to allow lookaside packets to be injected to ethdev Rx - Use PDCP_CHAIN opcode instead of PDCP opcode for cipher-only and auth only cases - PMD API to submit instructions directly to hardware Changes in v3 - Addressed Akhil's commments on Rx inject patch - Updated license year to 2024 Changes in v2 - Addressed checkpatch issue - Addressed build error with stdatomic Aakash Sasidharan (1): crypto/cnxk: enable digest gen for zero len input Akhil Goyal (1): common/cnxk: fix memory leak Anoob Joseph (6): crypto/cnxk: use common macro crypto/cnxk: return microcode completion code common/cnxk: update opad-ipad gen to handle TLS common/cnxk: add TLS record contexts crypto/cnxk: separate IPsec from security common code crypto/cnxk: add PMD APIs for raw submission to CPT Gowrishankar Muthukrishnan (1): crypto/cnxk: fix ECDH pubkey verify in cn9k Rahul Bhansali (2): common/cnxk: add Rx inject configs crypto/cnxk: Rx inject config update Tejasree Kondoj (3): crypto/cnxk: fallback to SG if headroom is not available crypto/cnxk: replace PDCP with PDCP chain opcode crypto/cnxk: add CPT SG mode debug Vidya Sagar Velumuri (10): crypto/cnxk: enable Rx inject in security lookaside crypto/cnxk: enable Rx inject for 103 crypto/cnxk: rename security caps as IPsec security caps crypto/cnxk: add TLS record session ops crypto/cnxk: add TLS record datapath handling crypto/cnxk: add TLS capability crypto/cnxk: validate the combinations supported in TLS crypto/cnxk: use a single function for opad ipad crypto/cnxk: add support for TLS 1.3 crypto/cnxk: add TLS 1.3 capability doc/api/doxy-api-index.md | 1 + doc/api/doxy-api.conf.in | 1 + doc/guides/cryptodevs/cnxk.rst | 12 + doc/guides/cryptodevs/features/cn10k.ini | 1 + doc/guides/rel_notes/release_24_03.rst | 7 + drivers/common/cnxk/cnxk_security.c | 65 +- drivers/common/cnxk/cnxk_security.h | 15 +- drivers/common/cnxk/hw/cpt.h | 12 +- drivers/common/cnxk/roc_cpt.c | 14 +- drivers/common/cnxk/roc_cpt.h | 7 +- drivers/common/cnxk/roc_cpt_priv.h | 2 +- drivers/common/cnxk/roc_idev.c | 44 + drivers/common/cnxk/roc_idev.h | 5 + drivers/common/cnxk/roc_idev_priv.h | 6 + drivers/common/cnxk/roc_ie_ot.c | 14 +- drivers/common/cnxk/roc_ie_ot_tls.h | 225 +++++ drivers/common/cnxk/roc_mbox.h | 2 + drivers/common/cnxk/roc_nix.c | 2 + drivers/common/cnxk/roc_nix_inl.c | 2 +- drivers/common/cnxk/roc_nix_inl_dev.c | 2 +- drivers/common/cnxk/roc_se.c | 379 +++----- drivers/common/cnxk/roc_se.h | 38 +- drivers/common/cnxk/version.map | 5 + drivers/crypto/cnxk/cn10k_cryptodev.c | 2 +- drivers/crypto/cnxk/cn10k_cryptodev_ops.c | 401 ++++++++- drivers/crypto/cnxk/cn10k_cryptodev_ops.h | 11 + drivers/crypto/cnxk/cn10k_cryptodev_sec.c | 134 +++ drivers/crypto/cnxk/cn10k_cryptodev_sec.h | 68 ++ drivers/crypto/cnxk/cn10k_ipsec.c | 134 +-- drivers/crypto/cnxk/cn10k_ipsec.h | 38 +- drivers/crypto/cnxk/cn10k_ipsec_la_ops.h | 19 +- drivers/crypto/cnxk/cn10k_tls.c | 830 ++++++++++++++++++ drivers/crypto/cnxk/cn10k_tls.h | 35 + drivers/crypto/cnxk/cn10k_tls_ops.h | 322 +++++++ drivers/crypto/cnxk/cn9k_cryptodev_ops.c | 68 +- drivers/crypto/cnxk/cn9k_cryptodev_ops.h | 62 ++ drivers/crypto/cnxk/cn9k_ipsec_la_ops.h | 16 +- drivers/crypto/cnxk/cnxk_cryptodev.c | 3 + drivers/crypto/cnxk/cnxk_cryptodev.h | 24 +- .../crypto/cnxk/cnxk_cryptodev_capabilities.c | 375 +++++++- drivers/crypto/cnxk/cnxk_cryptodev_devargs.c | 31 + drivers/crypto/cnxk/cnxk_cryptodev_ops.c | 128 ++- drivers/crypto/cnxk/cnxk_cryptodev_ops.h | 7 + drivers/crypto/cnxk/cnxk_se.h | 98 +-- drivers/crypto/cnxk/cnxk_sg.h | 4 +- drivers/crypto/cnxk/meson.build | 4 +- drivers/crypto/cnxk/rte_pmd_cnxk_crypto.h | 46 + drivers/crypto/cnxk/version.map | 3 + 48 files changed, 3018 insertions(+), 706 deletions(-) create mode 100644 drivers/common/cnxk/roc_ie_ot_tls.h create mode 100644 drivers/crypto/cnxk/cn10k_cryptodev_sec.c create mode 100644 drivers/crypto/cnxk/cn10k_cryptodev_sec.h create mode 100644 drivers/crypto/cnxk/cn10k_tls.c create mode 100644 drivers/crypto/cnxk/cn10k_tls.h create mode 100644 drivers/crypto/cnxk/cn10k_tls_ops.h create mode 100644 drivers/crypto/cnxk/rte_pmd_cnxk_crypto.h -- 2.25.1