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 7388AA034F; Mon, 11 Oct 2021 17:51:06 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5F4834111E; Mon, 11 Oct 2021 17:51:06 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 18474410DC for ; Mon, 11 Oct 2021 17:51:03 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 19BEHaud030539 for ; Mon, 11 Oct 2021 08:51:03 -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=6SRC7vTTWNZDCZl4RnQOAij4DElv6q5A752kcbb5KJ4=; b=h+0VF2ztica26+eKoj2e8Eg1Q0+q2N15DN2RKvArN2jPUB7kNy7yyXonH7Vf9oArDuRZ RhAfktG2Aj8UlIi0TTkDBk5xn+kW4ANSo+Un0uNOfgPP7PhNz42M/gXWaEaSat9UmehD Q1p4K/x9n0M8NpgLLkH/Szl8EB0832Ndh4hMJ4zFUxWbxDa/HizXeOmQudULYA9+garb 3cmka4zj0ogURoDOzkjkhR64cmyeleUEPAynm7n4lt7ew5LSgI3es3n+vS489tE2ls1E ABLvR/AdyKcTx9/YSCOWWurwr3uFnkjfaoBCUHPyi59i2WRQVgAoQUg7kYowp97SciAZ RA== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com with ESMTP id 3bmpv4rc0b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Mon, 11 Oct 2021 08:51:03 -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; Mon, 11 Oct 2021 08:51:01 -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; Mon, 11 Oct 2021 08:51:01 -0700 Received: from localhost.localdomain (unknown [10.28.34.25]) by maili.marvell.com (Postfix) with ESMTP id 706B73F707B; Mon, 11 Oct 2021 08:51:00 -0700 (PDT) From: To: CC: , Sunil Kumar Kori Date: Mon, 11 Oct 2021 21:20:28 +0530 Message-ID: <20211011155057.302142-1-skori@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210930090844.1059326-1-skori@marvell.com> References: <20210930090844.1059326-1-skori@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: 8apInNP023vcuPnNHixEBIEq7LQQ_YDr X-Proofpoint-GUID: 8apInNP023vcuPnNHixEBIEq7LQQ_YDr X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475 definitions=2021-10-11_05,2021-10-11_01,2020-04-07_01 Subject: [dpdk-dev] [PATCH v4 00/28] Support ingress policer 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" From: Sunil Kumar Kori Series adds support for ingress meter for CN10K platform. Series is divided in following two logical implementation: - common/cnxk: It implements RoC APIs over MBOX interfaces which are by network drivers. common/cnxk: update policer MBOX APIs and HW definitions common/cnxk: support RoC API to get level to index common/cnxk: support RoC API to get profile count common/cnxk: support RoC API to alloc bandwidth profiles common/cnxk: support RoC API to free bandwidth profiles common/cnxk: support RoC API to configure bandwidth profile common/cnxk: support RoC API to toggle profile state common/cnxk: support RoC API to dump bandwidth profile common/cnxk: support RoC API to setup precolor table common/cnxk: support RoC API to connect bandwidth profiles common/cnxk: support RoC API to get stats to index common/cnxk: support RoC API to read profile statistics common/cnxk: support RoC API to reset profile stats common/cnxk: support meter in action list - net/cnxk: It implenets ethdev ops for various metering operations. For cn9k platform, ops are registerded as NULL because cn9k does not support metering. net/cnxk: support meter ops get API net/cnxk: support ops to get meter capabilities net/cnxk: support ops to create meter profile net/cnxk: support ops to delete meter profile net/cnxk: support ops to validate meter policy net/cnxk: support ops to create meter policy net/cnxk: support ops to delete meter policy net/cnxk: support ops to create meter net/cnxk: support ops to delete meter net/cnxk: support ops to enable/disable meter net/cnxk: support ops to update precolor DSCP table net/cnxk: support ops to read/update meter stats net/cnxk: support meter action to flow create net/cnxk: support meter action to flow destroy doc/guides/nics/features/cnxk.ini | 1 + doc/guides/nics/features/cnxk_vf.ini | 1 + doc/guides/rel_notes/release_21_11.rst | 1 + drivers/common/cnxk/hw/nix.h | 62 +- drivers/common/cnxk/meson.build | 1 + drivers/common/cnxk/roc_mbox.h | 34 +- drivers/common/cnxk/roc_nix.h | 164 +++ drivers/common/cnxk/roc_nix_bpf.c | 1149 ++++++++++++++++++++ drivers/common/cnxk/roc_nix_priv.h | 1 + drivers/common/cnxk/roc_npc.c | 7 + drivers/common/cnxk/roc_npc.h | 8 +- drivers/common/cnxk/roc_platform.h | 1 + drivers/common/cnxk/roc_utils.c | 3 + drivers/common/cnxk/version.map | 15 + drivers/net/cnxk/cn10k_rte_flow.c | 193 +++- drivers/net/cnxk/cnxk_ethdev.c | 57 + drivers/net/cnxk/cnxk_ethdev.h | 92 ++ drivers/net/cnxk/cnxk_ethdev_mtr.c | 1341 ++++++++++++++++++++++++ drivers/net/cnxk/cnxk_rte_flow.c | 4 + drivers/net/cnxk/meson.build | 1 + 20 files changed, 3129 insertions(+), 7 deletions(-) create mode 100644 drivers/common/cnxk/roc_nix_bpf.c create mode 100644 drivers/net/cnxk/cnxk_ethdev_mtr.c -- 2.25.1