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 768B8A0C40; Fri, 25 Jun 2021 08:15:40 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EC1D940698; Fri, 25 Jun 2021 08:15:39 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 3045B4068A for ; Fri, 25 Jun 2021 08:15:39 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 15P65xam002101; Thu, 24 Jun 2021 23:15:38 -0700 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=NkFZ561uaSTljuIsxGaFgrLTGpumis1JMvWHlIRXroQ=; b=iOHROHeq30CE8nrcD5X0rvWKKbKHKMKXdmJeSoKyh2i2yayF9cLJNuRpQzop56gQQSya 6GejWFQkEM2rjQA4lj42hkAQMIuqLsWWsjsDC1QapXM+5tjVe5TVp7JLjD5FvZI1+oiY fYSGZOqnmpJ5BUGF8XzHnVzFQw+irReTHBOHPRsmqmKAStKBp56ZhOstQXrznnnq3J+Z EKcVihXg5RWnlkXCyXLm0ix2a6QNsT6KXG7ABh7X//pQEVzo2qWiOj2TYuriVKUAAGN5 /fqIZWa9i+Vi+uXMyTPatD/62yonO7AB2RwbiW+8+KftcWCUd2RbhXv5lyTSh4UPm8/a Dg== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com with ESMTP id 39d24dhms6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 24 Jun 2021 23:15:38 -0700 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.18; Thu, 24 Jun 2021 23:15:36 -0700 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.18 via Frontend Transport; Thu, 24 Jun 2021 23:15:36 -0700 Received: from HY-LT1002.marvell.com (HY-LT1002.marvell.com [10.28.176.218]) by maili.marvell.com (Postfix) with ESMTP id 2FD913F7041; Thu, 24 Jun 2021 23:15:32 -0700 (PDT) From: Anoob Joseph To: Akhil Goyal , Thomas Monjalon CC: Anoob Joseph , Jerin Jacob , "Ankur Dwivedi" , Tejasree Kondoj , Date: Fri, 25 Jun 2021 11:45:04 +0530 Message-ID: <1624601708-29991-1-git-send-email-anoobj@marvell.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1622653862-22830-2-git-send-email-anoobj@marvell.com> References: <1622653862-22830-2-git-send-email-anoobj@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: DnzruYifIm9ktxbLv9EOnTlAnhdLEze0 X-Proofpoint-ORIG-GUID: DnzruYifIm9ktxbLv9EOnTlAnhdLEze0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790 definitions=2021-06-25_02:2021-06-24, 2021-06-25 signatures=0 Subject: [dpdk-dev] [PATCH v2 0/4] Add rte_security in crypto_cn10k PMD 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 Sender: "dev" Add rte_security (lookaside protocol - IPsec) support in crypto_cn10k. IPsec operations can be offloaded to CPT's SE and IE engines, which can process IPsec protcol operations including atomic sequence number increment (for outbound operations) and anti replay window check (for inbound operations). Depends-on: series-17482 ("Add CPT in Marvell CNXK common driver") Depends-on: series-17483 ("Add Marvell CNXK crypto PMDs") Changes in v2: - Rearranged capability additions & feature flag updates as suggested by Akhil - Rebased on v2 of dependant series Anoob Joseph (1): crypto/cnxk: add security capabilities Srujana Challa (1): crypto/cnxk: add security ctx skeleton Tejasree Kondoj (2): crypto/cnxk: add security session ops crypto/cnxk: add security handling in datapath ops doc/guides/cryptodevs/cnxk.rst | 24 ++ doc/guides/cryptodevs/features/cn10k.ini | 1 + drivers/crypto/cnxk/cn10k_cryptodev.c | 12 + drivers/crypto/cnxk/cn10k_cryptodev_ops.c | 78 +++++- drivers/crypto/cnxk/cn10k_ipsec.c | 275 ++++++++++++++++++++++ drivers/crypto/cnxk/cn10k_ipsec.h | 36 +++ drivers/crypto/cnxk/cn10k_ipsec_la_ops.h | 74 ++++++ drivers/crypto/cnxk/cnxk_cryptodev.h | 4 + drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c | 114 +++++++++ drivers/crypto/cnxk/cnxk_cryptodev_capabilities.h | 9 +- drivers/crypto/cnxk/cnxk_cryptodev_sec.c | 48 ++++ drivers/crypto/cnxk/cnxk_cryptodev_sec.h | 14 ++ drivers/crypto/cnxk/cnxk_ipsec.h | 20 ++ drivers/crypto/cnxk/meson.build | 6 +- 14 files changed, 712 insertions(+), 3 deletions(-) create mode 100644 drivers/crypto/cnxk/cn10k_ipsec.c create mode 100644 drivers/crypto/cnxk/cn10k_ipsec.h create mode 100644 drivers/crypto/cnxk/cn10k_ipsec_la_ops.h create mode 100644 drivers/crypto/cnxk/cnxk_cryptodev_sec.c create mode 100644 drivers/crypto/cnxk/cnxk_cryptodev_sec.h create mode 100644 drivers/crypto/cnxk/cnxk_ipsec.h -- 2.7.4