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 639C3A055A; Fri, 3 Jun 2022 16:56:24 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5372B40694; Fri, 3 Jun 2022 16:56:24 +0200 (CEST) Received: from mail-108-mta112.mxroute.com (mail-108-mta112.mxroute.com [136.175.108.112]) by mails.dpdk.org (Postfix) with ESMTP id 65C7E4021E for ; Fri, 3 Jun 2022 16:56:22 +0200 (CEST) Received: from filter006.mxroute.com ([140.82.40.27] 140.82.40.27.vultrusercontent.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta112.mxroute.com (ZoneMTA) with ESMTPSA id 1812a11346f000c327.001 for (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256); Fri, 03 Jun 2022 14:56:19 +0000 X-Zone-Loop: 079eb67a79551c1fc199f4f6d06c3de62ed9677060fb X-Originating-IP: [140.82.40.27] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ashroe.eu; s=x; h=Content-Type:MIME-Version:Message-ID:In-reply-to:Date:Subject:Cc:To: From:References:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=5qYAiyDn5CYcPcbNlaqClliCIo1TNcZQbkW4VPFrIQU=; b=rJEtz+gFI+iUWfZcjjIA8SyRTT FXOsg6UZYWZbWyfmWa1oaEkEIZaykyfjwEoOQzhkKTBLkjm4VJMXy88w4brP1l0tcMXdwmhte/3r6 0DSVHn1PeAzDmERVTqQ+rOGEEs22a2BVCyZFd+GPZlr39iBpCz3d3d2tRZEUSKJmgk+00ArVtNabq 1mYvGr0vPc5JHPY2wpRE++KTsoW624ZQ/2yFUYHTJfvH0paAo4xyqL35lX54OgYdhUsCklEFMkYI7 M9GX3aQzYZ6BwQJUFI/EF9KW/KiPc7RZNaS54xwxS8l7pXtV0citJskhQQGckXzbdeu5QvppMI87C AKeGHsZQ==; References: <20220524152041.737154-1-spiked@nvidia.com> <20220603124821.1148119-1-spiked@nvidia.com> <20220603124821.1148119-7-spiked@nvidia.com> User-agent: mu4e 1.6.10; emacs 27.1 From: Ray Kinsella To: Spike Du Cc: matan@nvidia.com, viacheslavo@nvidia.com, orika@nvidia.com, thomas@monjalon.net, Shahaf Shuler , Neil Horman , andrew.rybchenko@oktetlabs.ru, stephen@networkplumber.org, mb@smartsharesystems.com, dev@dpdk.org, rasland@nvidia.com Subject: Re: [PATCH v4 6/7] net/mlx5: add private API to config host port shaper Date: Fri, 03 Jun 2022 15:55:58 +0100 In-reply-to: <20220603124821.1148119-7-spiked@nvidia.com> Message-ID: <878rqdpzhr.fsf@mdr78.vserver.site> MIME-Version: 1.0 Content-Type: text/plain X-AuthUser: mdr@ashroe.eu 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 Spike Du writes: > Host port shaper can be configured with QSHR(QoS Shaper Host Register). > Add check in build files to enable this function or not. > > The host shaper configuration affects all the ethdev ports belonging to the > same host port. > > Host shaper can configure shaper rate and lwm-triggered for a host port. > The shaper limits the rate of traffic from host port to wire port. > If lwm-triggered is enabled, a 100Mbps shaper is enabled automatically > when one of the host port's Rx queues receives fill threshold event. > > Signed-off-by: Spike Du > --- > doc/guides/nics/mlx5.rst | 35 +++++++++++ > doc/guides/rel_notes/release_22_07.rst | 1 + > drivers/common/mlx5/linux/meson.build | 13 +++++ > drivers/common/mlx5/mlx5_prm.h | 25 ++++++++ > drivers/net/mlx5/mlx5.h | 2 + > drivers/net/mlx5/mlx5_rx.c | 103 +++++++++++++++++++++++++++++++++ > drivers/net/mlx5/rte_pmd_mlx5.h | 30 ++++++++++ > drivers/net/mlx5/version.map | 2 + > 8 files changed, 211 insertions(+) > Acked-by: Ray Kinsella