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 153D1A054F; Mon, 1 Mar 2021 11:35:41 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8A3F84067B; Mon, 1 Mar 2021 11:35:40 +0100 (CET) Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by mails.dpdk.org (Postfix) with ESMTP id 27E4B4014E for ; Mon, 1 Mar 2021 11:35:39 +0100 (CET) Received: from Internal Mail-Server by MTLPINE1 (envelope-from lizh@nvidia.com) with SMTP; 1 Mar 2021 12:35:38 +0200 Received: from nvidia.com (c-235-17-1-009.mtl.labs.mlnx [10.235.17.9]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 121AZcTT011605; Mon, 1 Mar 2021 12:35:38 +0200 From: Li Zhang To: dekelp@nvidia.com, orika@nvidia.com, viacheslavo@nvidia.com, matan@nvidia.com Cc: dev@dpdk.org, thomas@monjalon.net, rasland@nvidia.com, mb@smartsharesystems.com, ajit.khaparde@broadcom.com Date: Mon, 1 Mar 2021 12:35:28 +0200 Message-Id: <20210301103532.184983-1-lizh@nvidia.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20210125010235.1768333-1-lizh@nvidia.com> References: <20210125010235.1768333-1-lizh@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [RFC v4 0/4] adds support PPS(packet per second) on meter 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" Currently the flow Meter algorithms in rte_flow only supports bytes per second(BPS). Such as Single Rate Three Color Marker (srTCM rfc2697) This RFC adds the packet per second definition in Meter algorithms structure, to support the rte_mtr APIs with type srTCM pps mode. The below structure will be extended: rte_mtr_algorithm rte_mtr_meter_profile v4: * Fix the wrong commit log. v3: * Redefine the struct name for PPS mode. v2: * Rebase Li Zhang (4): ethdev: add meter PPS profile common/mlx5: add meter mode definition in PRM file net/mlx5: support meter PPS profile app/testpmd: add meter pps mode cmd app/test-pmd/cmdline.c | 4 + app/test-pmd/cmdline_mtr.c | 105 ++++++++++++++++++ app/test-pmd/cmdline_mtr.h | 1 + doc/guides/nics/mlx5.rst | 1 + .../traffic_metering_and_policing.rst | 3 +- doc/guides/rel_notes/release_20_11.rst | 5 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 15 +++ drivers/common/mlx5/mlx5_prm.h | 8 ++ drivers/net/mlx5/mlx5.h | 13 ++- drivers/net/mlx5/mlx5_flow_aso.c | 17 ++- drivers/net/mlx5/mlx5_flow_meter.c | 71 +++++++++--- lib/librte_ethdev/rte_mtr.h | 32 ++++++ 12 files changed, 251 insertions(+), 24 deletions(-) -- 2.21.0