From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,UNPARSEABLE_RELAY,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1314DC433DB for ; Mon, 1 Mar 2021 10:35:42 +0000 (UTC) Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by mail.kernel.org (Postfix) with ESMTP id 6571C64D9A for ; Mon, 1 Mar 2021 10:35:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6571C64D9A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nvidia.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dev-bounces@dpdk.org 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