From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from e06smtp06.uk.ibm.com (e06smtp06.uk.ibm.com [195.75.94.102]) by dpdk.org (Postfix) with ESMTP id B5D285A53 for ; Mon, 19 Oct 2015 16:31:18 +0200 (CEST) Received: from localhost by e06smtp06.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 19 Oct 2015 15:31:18 +0100 Received: from d06dlp02.portsmouth.uk.ibm.com (9.149.20.14) by e06smtp06.uk.ibm.com (192.168.101.136) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 19 Oct 2015 15:31:16 +0100 X-IBM-Helo: d06dlp02.portsmouth.uk.ibm.com X-IBM-MailFrom: eimear.morrissey@ie.ibm.com X-IBM-RcptTo: dev@dpdk.org Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id 247BA219004D for ; Mon, 19 Oct 2015 15:31:14 +0100 (BST) Received: from d06av03.portsmouth.uk.ibm.com (d06av03.portsmouth.uk.ibm.com [9.149.37.213]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t9JEVGSi40370188 for ; Mon, 19 Oct 2015 14:31:16 GMT Received: from d06av03.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av03.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t9JEVGNM023250 for ; Mon, 19 Oct 2015 08:31:16 -0600 Received: from d50lp01.ny.us.ibm.com ([146.89.104.207]) by d06av03.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id t9JEVEVs020885 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 19 Oct 2015 08:31:15 -0600 Message-Id: <201510191431.t9JEVEVs020885@d06av03.portsmouth.uk.ibm.com> Received: from /spool/local by d50lp01.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 19 Oct 2015 10:30:16 -0400 Received: from smtp.notes.na.collabserv.com (192.155.248.67) by d50lp01.ny.us.ibm.com (158.87.18.20) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256/256) Mon, 19 Oct 2015 10:30:12 -0400 Received: from /spool/local by smtp.notes.na.collabserv.com with smtp.notes.na.collabserv.com ESMTP for from ; Mon, 19 Oct 2015 14:30:11 -0000 Received: from us1a3-smtp01.a3.dal06.isc4sb.com (10.106.154.100) by smtp.notes.na.collabserv.com (10.106.227.16) with smtp.notes.na.collabserv.com ESMTP; Mon, 19 Oct 2015 14:30:10 -0000 Received: from us1a3-mail95.a3.dal06.isc4sb.com ([10.146.21.14]) by us1a3-smtp01.a3.dal06.isc4sb.com with ESMTP id 2015101914305639-329416 ; Mon, 19 Oct 2015 14:30:56 +0000 In-Reply-To: To: Arnon Warshavsky From: "Eimear Morrissey" Date: Mon, 19 Oct 2015 15:30:07 +0100 References: <201510191144.t9JBipSw002859@d06av08.portsmouth.uk.ibm.com> X-KeepSent: AD6FACD4:261E8BDC-00257EE3:004DA2D2; type=4; name=$KeepSent X-Mailer: IBM Notes Release 9.0.1FP4 Octobe4, 2013 X-LLNOutbound: False X-Disclaimed: 27755 X-TNEFEvaluated: 1 x-cbid: 15101914-0025-0000-0000-0000049CACAC X-IBM-ISS-SpamDetectors: Score=0.417846; BY=0; FL=0; FP=0; FZ=0; HX=0; KW=0; PH=0; SC=0.417846; ST=0; TS=0; UL=0; ISC= X-IBM-ISS-DetailInfo: BY=3.00004513; HX=3.00000236; KW=3.00000007; PH=3.00000004; SC=3.00000120; SDB=6.00604986; UDB=6.00266222; UTC=2015-10-19 14:30:11 x-cbparentid: 15101914-5938-0000-0000-0000009CB7EF X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: dev@dpdk.org Subject: Re: [dpdk-dev] Inconsistent statistics counters for pmd_i40e X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Oct 2015 14:31:18 -0000 Arnon Warshavsky wrote on 10/19/2015 03:01:46 PM: > From: Arnon Warshavsky > To: Eimear Morrissey/Ireland/IBM@IBMIE > Cc: dev@dpdk.org > Date: 10/19/2015 03:01 PM > Subject: Re: [dpdk-dev] Inconsistent statistics counters for pmd=5Fi40e > > Hi Eimear, > > I just experienced the same problem with firmware versions 4.23 and > 4.33 (dpdk 2.0). Did not get to try the latest which is 4.5. > Looking at the code, I don't see that this counter is being read any > differently than its peer counters and I suspect the nic itself. > Can you tell which firmware version you were using? > > thanks > /Arnon > > On Mon, Oct 19, 2015 at 2:43 PM, Eimear Morrissey > wrote: > > > Hi, > > I'm having issues measuring packets dropped at the NIC in both the 2.0.0 > and 2.1.0 versions of DPDK on an X710 Intel NIC. > > In dpdk-2.0.0 > Using rte=5Feth=5Fxstats the rx=5Fpackets and rx=5Fbytes counters increas= e as > expected, however rx=5Fmissed=5Ferrors is always 0 even if a sleep statem= ent is > added between calls to rte=5Feth=5Frx=5Fburst. However changing the corem= ask so > the application is running on a different socket than the card will cause > rx=5Fmissed=5Ferrors to increment for a limited amount of time and then s= top. > Using rte=5Feth=5Fstats, ipackets is incremented on packet receipt but the > q=5Fipackets and q=5Ferrors arrays remain zero. Even crossing sockets see= ms to > have no effect on q=5Ferrors. > > In dpdk-2.1.0 the behaviour is the same as above, except that the number of > fields returned by rte=5Feth=5Fxstats=5Fget is reduced (no rx=5Fmissed er= rors at > all) so running on a different socket no longer has any noticeable effect > on the stats. > > My understanding from the API manual is that the rte=5Feth=5Fstats q=5Fer= rors > array should count the packets missed because software isn't polling fast > enough, but that doesn't seem to be the case? Is there a standard DPDK way > to check this? The application is a forwarding one so there's no other way > to estimate drop except through NIC rx. > > Thanks, > Eimear > > > > -- > > Arnon Warshavsky > Qwilt | work: +972-72-2221634 | mobile: +972-50-8583058 | arnon@qwilt.com Hi Arnon, The firmware version I'm using is 4.26. Where do you see the latest is 4.5 - I can't find anything obvious in the download centre? Regards, Eimear