From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by dpdk.org (Postfix) with ESMTP id C00AB2B9E for ; Wed, 29 Nov 2017 13:14:30 +0100 (CET) Received: by mail-wm0-f65.google.com with SMTP id r78so5793502wme.5 for ; Wed, 29 Nov 2017 04:14:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=qhL38wwZ1TIs1lVs7DJKN7ri9Yorgn6hvsBDIET2j6I=; b=nx32Sion8csp20rRqy2tQwGZ9i1bGX/5607RXH0MwcdS2inbtZQUh/ETWKcelhdzKB a529TVSgzlnLy+SP2MY/UKR8PkQovDg/z4QYaEnQ7JU8ihr/AwSrpgYTm0qfwlZgyqPu dYXfa97YKlUp2kreyXfb9D10/+aFWVFXpWSKqjOR1qCh7ghO40H+FWQBldHpP0u1c5F3 WcIP8PRosRtarm2UShx+3q+JM/sfRo0PIFRNQNNyMX+3foZviOyZITjVX6gBlKZbyCgR Wai2FH6QR5bTNyUzkPnhMyx5B2X6EAuwn0OdWtmXGZHSyszpwVqS9ccbercTHyTUleWB spSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=qhL38wwZ1TIs1lVs7DJKN7ri9Yorgn6hvsBDIET2j6I=; b=eYZfP7kgmzMoL2xSKfaEYYyX0x86FD89vj9Z4WJdjp+x92o5W4PEK4Vxs/Lsy5GOaI Bp5KaxCpi+hapngWYGCKKZS2YQYSeY7K0UzyvGMM7lwp+vxozel5vQWk51SmgaMiSJ7+ Bv6k1Iyp3zlF2hq68jYrmoOrJ1DteEuVvqtAVmUs5EXsM7MJ9SQM33rBKaDO+ofVehDb 6Ngt1tH8CGGnFKK0iVpF7TdPyuOfvn110ejST7cRje9IxZpjR5jkr/mHn0ag6DQJhcT7 OJkE6E1hQ5vloAoMu55tjERlluFSQKu1gvexhoMpbLS5/K+qIOK/Vj69hvF8iRmuCALw EVhw== X-Gm-Message-State: AJaThX7b+pre5+SPSyqU1bIdHiqb7W0eG2H5yDMrk+00KBqP0EB993hb ddKUY6w5/1SREPgp9Q7hikK0 X-Google-Smtp-Source: AGs4zMYBZVRmO1HmE5NklT7hDLsNWNsNNw+MBZ7VVjOC9qF6S6lyiWYvwAk9j4amIz+5FF6s6doM4Q== X-Received: by 10.28.120.19 with SMTP id t19mr2430739wmc.64.1511957670440; Wed, 29 Nov 2017 04:14:30 -0800 (PST) Received: from laranjeiro-vm.dev.6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id g68sm1755892wmc.22.2017.11.29.04.14.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 29 Nov 2017 04:14:29 -0800 (PST) Date: Wed, 29 Nov 2017 13:14:29 +0100 From: Nelio Laranjeiro To: Shahaf Shuler Cc: adrien.mazarguil@6wind.com, yskoh@mellanox.com, dev@dpdk.org Message-ID: <20171129121429.5t3u7qbkpxz4jkp3@laranjeiro-vm.dev.6wind.com> References: <20171129112908.29493-1-shahafs@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20171129112908.29493-1-shahafs@mellanox.com> User-Agent: NeoMutt/20170113 (1.7.2) Subject: Re: [dpdk-dev] [PATCH 1/2] doc: update mlx5 statistics query X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Nov 2017 12:14:30 -0000 On Wed, Nov 29, 2017 at 01:29:07PM +0200, Shahaf Shuler wrote: > Update the guide with more details on the different statistics query > possible with MLX5 PMD. > > Signed-off-by: Shahaf Shuler > --- > doc/guides/nics/mlx5.rst | 13 +++++++++++-- > 1 file changed, 11 insertions(+), 2 deletions(-) > > diff --git a/doc/guides/nics/mlx5.rst b/doc/guides/nics/mlx5.rst > index f9558da89..154db64d7 100644 > --- a/doc/guides/nics/mlx5.rst > +++ b/doc/guides/nics/mlx5.rst > @@ -105,8 +105,6 @@ Limitations > ----------- > > - Inner RSS for VXLAN frames is not supported yet. > -- Port statistics through software counters only. Flow statistics are > - supported by hardware counters. > - Hardware checksum RX offloads for VXLAN inner header are not supported yet. > - Forked secondary process not supported. > - Flow pattern without any specific vlan will match for vlan packets as well: > @@ -134,6 +132,17 @@ Limitations > to 0 are not supported. > - VXLAN TSO and checksum offloads are not supported on VM. > > +Statistics > +---------- > + > +MLX5 supports various of methods to report statistics: > + > +Port statistics can be queried using ``rte_eth_stats_get()``. The port statistics are through SW only and counts the number of packets received or sent successfully by the PMD. > + > +Extended statistics can be queried using ``rte_eth_xstats_get()``. The extended statistics expose a wider set of counters counted by the device. The extended port statistics counts the number of packets received or sent successfully by the port. As Mellanox NICs are using the :ref:`Bifurcated Linux Driver ` those counters counts also packet received or sent by the Linux kernel. The counters with ``_phy`` suffix counts the total events on the physical port, therefore not valid for VF. > + > +Finally per-flow statistics can by queried using ``rte_flow_query`` when attaching a count action for specific flow. The flow counter counts the number of packets received successfully by the port and match the specific flow. > + > Configuration > ------------- > > -- > 2.12.0 For the series, Acked-by: Nelio Laranjeiro Thanks, -- Nélio Laranjeiro 6WIND