From patchwork Wed Sep 28 12:45:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akhil Goyal X-Patchwork-Id: 117051 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 23510A00C4; Wed, 28 Sep 2022 14:45:45 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C1BBD4113D; Wed, 28 Sep 2022 14:45:44 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 014D34113C for ; Wed, 28 Sep 2022 14:45:42 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 28SA4cpW003076; Wed, 28 Sep 2022 05:45:41 -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=T5/ZCYcMvcT11t1rgLYdrvIishaqHgiWpar9hUyQ4gM=; b=kTuyeGRQ4BDjeiU6fo2Hb+ijY4KpSRosyX5xLpMi8GitdiZ8O1GcYwG15jd/oMBAV0ca rAbxzsQhRZccAHf6bYFHCwpLtbebC3FhlnaxqTWYHJR6GRjOSdwoCdCgEw0I28k6U3xJ wAbxQg6Z9SzAfttNaeCMvCKUngmBIZeDSXqL8tzv4m3VQTuPlzFzjg6wT2Mm/8NJSH6c n7OcI1/XFfmUZwe3hMXKeSy4IpJ6qLXked0DLgnPxPQsj3XcJDVvcsgK9LU7PpZiMZdI 3aXD362fqsEPZOdAtigleqKk15uymUw1mCBrgv8V2h8m+R1BEYcHLHe0R1roSptC0aIA pg== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3jvjkk8skd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 28 Sep 2022 05:45:41 -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.2; Wed, 28 Sep 2022 05:45:24 -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.2 via Frontend Transport; Wed, 28 Sep 2022 05:45:24 -0700 Received: from localhost.localdomain (unknown [10.28.36.102]) by maili.marvell.com (Postfix) with ESMTP id CBC5C3F7053; Wed, 28 Sep 2022 05:45:19 -0700 (PDT) From: Akhil Goyal To: CC: , , , , , , , , , , , , , , , Akhil Goyal Subject: [PATCH 0/5] Support and test inline MACsec for cnxk Date: Wed, 28 Sep 2022 18:15:11 +0530 Message-ID: <20220928124516.93050-1-gakhil@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220928122253.23108-4-gakhil@marvell.com> References: <20220928122253.23108-4-gakhil@marvell.com> MIME-Version: 1.0 X-Proofpoint-GUID: 8VM6zxhM3MxywZqWby5_8A12ppzXIlVn X-Proofpoint-ORIG-GUID: 8VM6zxhM3MxywZqWby5_8A12ppzXIlVn X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-09-28_05,2022-09-28_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 These patches implement the rte_security MACsec APIs for net/cnxk and also add test cases to test functionality. MACsec APIs are introduced in http://patches.dpdk.org/project/dpdk/list/?series=24878 depends-on: http://patches.dpdk.org/project/dpdk/list/?series=24878 The patches are sent to showcase sample implementation and are not complete. Final patches will be sent in next few weeks. Akhil Goyal (5): common/cnxk: add ROC APIs for MACsec common/cnxk: derive hash key for MACsec net/cnxk: support MACsec test/security: add inline MACsec cases test/security: add more MACsec cases app/test/meson.build | 1 + app/test/test_security_inline_macsec.c | 1126 +++++++ .../test_security_inline_macsec_vectors.h | 2639 +++++++++++++++++ drivers/common/cnxk/meson.build | 3 + drivers/common/cnxk/roc_aes.c | 17 + drivers/common/cnxk/roc_aes.h | 2 + drivers/common/cnxk/roc_api.h | 3 + drivers/common/cnxk/roc_dev.c | 86 + drivers/common/cnxk/roc_mbox.h | 361 ++- drivers/common/cnxk/roc_mcs.c | 347 +++ drivers/common/cnxk/roc_mcs.h | 431 +++ drivers/common/cnxk/roc_mcs_priv.h | 52 + drivers/common/cnxk/roc_mcs_sec_cfg.c | 425 +++ drivers/common/cnxk/roc_mcs_stats.c | 230 ++ drivers/common/cnxk/roc_priv.h | 3 + drivers/common/cnxk/version.map | 34 + drivers/net/cnxk/cn10k_ethdev_mcs.c | 407 +++ drivers/net/cnxk/cn10k_ethdev_mcs.h | 59 + drivers/net/cnxk/cn10k_ethdev_sec.c | 11 +- drivers/net/cnxk/cn10k_flow.c | 14 + drivers/net/cnxk/cnxk_ethdev.h | 31 + drivers/net/cnxk/cnxk_ethdev_sec.c | 2 +- drivers/net/cnxk/meson.build | 1 + 23 files changed, 6280 insertions(+), 5 deletions(-) create mode 100644 app/test/test_security_inline_macsec.c create mode 100644 app/test/test_security_inline_macsec_vectors.h 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/cn10k_ethdev_mcs.c create mode 100644 drivers/net/cnxk/cn10k_ethdev_mcs.h