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 0F04342CB3; Wed, 14 Jun 2023 15:09:13 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A390640E0F; Wed, 14 Jun 2023 15:09:12 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 21DF540DDB for ; Wed, 14 Jun 2023 15:09:10 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 35ECFNaU026521; Wed, 14 Jun 2023 06:09:10 -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=i/a0ouRDAmMiD6zp7D3tADgR8X0gf1cBtN5u19/8xpw=; b=BNBmr2Rz819JYxHRWtq4TJv7AVuy0MdhopoHo3AhhcVknXWO1iYz3J7D0C4rP82S7dlA lzYB1OhirxVGV7gKO2PlA7b1bjjUbGNGZW7wUYP9piW+cKOXJqFhRLCuNJuGszxNu3ay Qoh3MPelzK/nnrVfe3LJaq9BeEM3+mAReB6Wt27qeUFGUa8NnpCpYe14yTWmgJAm13EN U85G9mX92wzRUii2DVobgQqEhsleTt759//UGCFkT6idMyngJgKSSP+yaCOPSzE3Uo4d 5QfpsJ/sWF7LjyRrg+qZjMuriyNfTHSJHsl87RQEN6E/upq8qq2dTKsfeVg9EF2HWmQS 0A== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3r7dd2r5ju-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 14 Jun 2023 06:09:09 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Wed, 14 Jun 2023 06:09:08 -0700 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.48 via Frontend Transport; Wed, 14 Jun 2023 06:09:08 -0700 Received: from localhost.localdomain (unknown [10.28.36.102]) by maili.marvell.com (Postfix) with ESMTP id CC8AC3F7066; Wed, 14 Jun 2023 06:09:05 -0700 (PDT) From: Akhil Goyal To: CC: , , , , , , Akhil Goyal Subject: [PATCH v5 00/15] net/cnxk: add MACsec support Date: Wed, 14 Jun 2023 18:38:46 +0530 Message-ID: <20230614130901.3245809-1-gakhil@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230613102009.2390568-1-gakhil@marvell.com> References: <20230613102009.2390568-1-gakhil@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: KfbwUKk28_g9bjlIDTT5t3MO8xeyliOX X-Proofpoint-ORIG-GUID: KfbwUKk28_g9bjlIDTT5t3MO8xeyliOX X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-06-14_08,2023-06-14_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 Added MACsec support in Marvell cnxk PMD. The patchset is pending from last release [1] Sending as a new series as the functionality is now complete and tested on hardware. [1] https://patches.dpdk.org/project/dpdk/cover/20220928124516.93050-1-gakhil@marvell.com/ Changes in v5: - fix copyright year - fix release notes - fix checkpatch warning Changes in v4: Fix build with RHEL/CentOS Changes in v3: - rebased - fixed warning PRI*64 - added release notes Changes in v2: - Addressed review comments from Jerin. Akhil Goyal (15): common/cnxk: add ROC MACsec initialization common/cnxk: add MACsec SA configuration common/cnxk: add MACsec SC configuration APIs common/cnxk: add MACsec secy and flow configuration common/cnxk: add MACsec PN and LMAC mode configuration common/cnxk: add MACsec stats common/cnxk: add MACsec interrupt APIs common/cnxk: add MACsec port configuration common/cnxk: add MACsec control port configuration common/cnxk: add MACsec FIPS mbox common/cnxk: derive hash key for MACsec net/cnxk: add MACsec initialization net/cnxk: create/destroy MACsec SC/SA net/cnxk: add MACsec session and flow configuration net/cnxk: add MACsec stats doc/guides/rel_notes/release_23_07.rst | 10 +- drivers/common/cnxk/meson.build | 3 + drivers/common/cnxk/roc_aes.c | 86 ++- drivers/common/cnxk/roc_aes.h | 4 +- drivers/common/cnxk/roc_api.h | 3 + drivers/common/cnxk/roc_dev.c | 86 +++ drivers/common/cnxk/roc_features.h | 12 + drivers/common/cnxk/roc_idev.c | 46 ++ drivers/common/cnxk/roc_idev.h | 3 + drivers/common/cnxk/roc_idev_priv.h | 1 + drivers/common/cnxk/roc_mbox.h | 524 ++++++++++++++- drivers/common/cnxk/roc_mcs.c | 871 +++++++++++++++++++++++++ drivers/common/cnxk/roc_mcs.h | 624 ++++++++++++++++++ drivers/common/cnxk/roc_mcs_priv.h | 73 +++ drivers/common/cnxk/roc_mcs_sec_cfg.c | 528 +++++++++++++++ drivers/common/cnxk/roc_mcs_stats.c | 193 ++++++ drivers/common/cnxk/roc_priv.h | 3 + drivers/common/cnxk/roc_utils.c | 5 + drivers/common/cnxk/version.map | 45 ++ drivers/net/cnxk/cn10k_ethdev_sec.c | 25 +- drivers/net/cnxk/cn10k_flow.c | 23 +- drivers/net/cnxk/cnxk_ethdev.c | 15 + drivers/net/cnxk/cnxk_ethdev.h | 30 + drivers/net/cnxk/cnxk_ethdev_mcs.c | 730 +++++++++++++++++++++ drivers/net/cnxk/cnxk_ethdev_mcs.h | 116 ++++ drivers/net/cnxk/cnxk_ethdev_sec.c | 2 +- drivers/net/cnxk/cnxk_flow.c | 5 + drivers/net/cnxk/meson.build | 1 + 28 files changed, 4025 insertions(+), 42 deletions(-) create mode 100644 drivers/common/cnxk/roc_mcs.c create mode 100644 drivers/common/cnxk/roc_mcs.h create mode 100644 drivers/common/cnxk/roc_mcs_priv.h create mode 100644 drivers/common/cnxk/roc_mcs_sec_cfg.c create mode 100644 drivers/common/cnxk/roc_mcs_stats.c create mode 100644 drivers/net/cnxk/cnxk_ethdev_mcs.c create mode 100644 drivers/net/cnxk/cnxk_ethdev_mcs.h -- 2.25.1