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 6D89942B85; Tue, 23 May 2023 22:04:17 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 43D4640A80; Tue, 23 May 2023 22:04:17 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id EC55B40689 for ; Tue, 23 May 2023 22:04:15 +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 34NC5jgv029254; Tue, 23 May 2023 13:04:11 -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=z79uvQJ4bAaYhEjwsEx+nzbdY5ayJcNaq4gvlnnvTbA=; b=aIEUn5ao5uWAVzu/jnEelnCvHSqdj1CwhRhbsZZeM+MENUGZe3Olqk0LYWB7l8Ue4h6r bioJymfY25P/crrTayGyHD0Vcz0xBQj/Hhv3uVIQvi6tzwu/Y8RglOv22wYSMINZL+le vHVmnmfJaJZaMzNVum2nGkosL6TDoh14ytXjV/TBcMFTb6wtXw5PWYiNGwLzHD7huqMW O6R76IFsIKQ68DzuAEKNypFXI7tnUwjYVJk2IuoGIW13Y0aYriXGSGaJK9eOGWoEYj6P qlK4Y1eWhQJGM9q+CRuAjyZR1roXzjy3ooeDmNfOC8AI3pnD4Hro8fFqoMJz3a96lbJ3 mw== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3qrm46mdw3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 23 May 2023 13:04:11 -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; Tue, 23 May 2023 13:04:09 -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; Tue, 23 May 2023 13:04:09 -0700 Received: from localhost.localdomain (unknown [10.28.36.102]) by maili.marvell.com (Postfix) with ESMTP id 975CB3F70A9; Tue, 23 May 2023 13:04:06 -0700 (PDT) From: Akhil Goyal To: CC: , , , , , , , , , Akhil Goyal Subject: [PATCH 00/15] net/cnxk: add MACsec support Date: Wed, 24 May 2023 01:33:46 +0530 Message-ID: <20230523200401.1945974-1-gakhil@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220928124516.93050-1-gakhil@marvell.com> References: <20220928124516.93050-1-gakhil@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: jgxkxpguRBYPngLBdVYD-avRgsSoYY9x X-Proofpoint-GUID: jgxkxpguRBYPngLBdVYD-avRgsSoYY9x 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-05-23_12,2023-05-23_02,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. Depends-on: https://patches.dpdk.org/project/dpdk/list/?series=28140 [1] https://patches.dpdk.org/project/dpdk/cover/20220928124516.93050-1-gakhil@marvell.com/ 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 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 | 6 + drivers/common/cnxk/roc_idev.c | 21 + drivers/common/cnxk/roc_idev.h | 2 + drivers/common/cnxk/roc_idev_priv.h | 1 + drivers/common/cnxk/roc_mbox.h | 524 ++++++++++++++- drivers/common/cnxk/roc_mcs.c | 895 ++++++++++++++++++++++++++ drivers/common/cnxk/roc_mcs.h | 619 ++++++++++++++++++ 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 | 44 ++ drivers/net/cnxk/cn10k_ethdev_sec.c | 25 +- drivers/net/cnxk/cn10k_flow.c | 22 +- drivers/net/cnxk/cnxk_ethdev.c | 15 + drivers/net/cnxk/cnxk_ethdev.h | 30 + drivers/net/cnxk/cnxk_ethdev_mcs.c | 726 +++++++++++++++++++++ drivers/net/cnxk/cnxk_ethdev_mcs.h | 111 ++++ drivers/net/cnxk/cnxk_ethdev_sec.c | 2 +- drivers/net/cnxk/cnxk_flow.c | 5 + drivers/net/cnxk/meson.build | 1 + 27 files changed, 3995 insertions(+), 38 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