From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from e06smtp12.uk.ibm.com (e06smtp12.uk.ibm.com [195.75.94.108]) by dpdk.org (Postfix) with ESMTP id 8B1128E7D for ; Mon, 19 Oct 2015 13:44:55 +0200 (CEST) Received: from localhost by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 19 Oct 2015 12:44:55 +0100 Received: from d06dlp02.portsmouth.uk.ibm.com (9.149.20.14) by e06smtp12.uk.ibm.com (192.168.101.142) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 19 Oct 2015 12:44:52 +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 b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id 0CAA72190056 for ; Mon, 19 Oct 2015 12:44:50 +0100 (BST) Received: from d06av08.portsmouth.uk.ibm.com (d06av08.portsmouth.uk.ibm.com [9.149.37.249]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t9JBiq4Q42008760 for ; Mon, 19 Oct 2015 11:44:52 GMT Received: from d06av08.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av08.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t9JBiqxp004502 for ; Mon, 19 Oct 2015 05:44:52 -0600 Received: from d50lp02.ny.us.ibm.com ([146.89.104.208]) by d06av08.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id t9JBipSw002859 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 19 Oct 2015 05:44:51 -0600 Message-Id: <201510191144.t9JBipSw002859@d06av08.portsmouth.uk.ibm.com> Received: from /spool/local by d50lp02.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 19 Oct 2015 07:44:04 -0400 Received: from smtp.notes.na.collabserv.com (192.155.248.72) by d50lp02.ny.us.ibm.com (158.87.18.21) 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 07:44:03 -0400 Received: from /spool/local by smtp.notes.na.collabserv.com with smtp.notes.na.collabserv.com ESMTP for from ; Mon, 19 Oct 2015 11:44:01 -0000 Received: from us1a3-smtp02.a3.dal06.isc4sb.com (10.106.154.103) by smtp.notes.na.collabserv.com (10.106.227.158) with smtp.notes.na.collabserv.com ESMTP; Mon, 19 Oct 2015 11:44:00 -0000 Received: from us1a3-mail95.a3.dal06.isc4sb.com ([10.146.21.14]) by us1a3-smtp02.a3.dal06.isc4sb.com with ESMTP id 2015101911444730-200420 ; Mon, 19 Oct 2015 11:44:47 +0000 To: dev@dpdk.org From: "Eimear Morrissey" Date: Mon, 19 Oct 2015 12:43:56 +0100 X-KeepSent: F2795825:451559C1-00257EE3:0037A4F1; type=4; name=$KeepSent X-Mailer: IBM Notes Release 9.0.1FP4 Octobe4, 2013 X-LLNOutbound: False X-Disclaimed: 31447 X-TNEFEvaluated: 1 x-cbid: 15101911-0009-0000-0000-0000065604C9 X-IBM-ISS-SpamDetectors: Score=0.423878; BY=0.258312; FL=0; FP=0; FZ=0; HX=0; KW=0; PH=0; SC=0.423878; 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.00604931; UDB=6.00266188; UTC=2015-10-19 11:44:01 x-cbparentid: 15101911-5090-0000-0000-00000568DA0F 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 Subject: [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 11:44:55 -0000 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 increase = as expected, however rx=5Fmissed=5Ferrors is always 0 even if a sleep statemen= t is added between calls to rte=5Feth=5Frx=5Fburst. However changing the coremas= k 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 sto= p. Using rte=5Feth=5Fstats, ipackets is incremented on packet receipt but the q=5Fipackets and q=5Ferrors arrays remain zero. Even crossing sockets seems= 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 erro= rs 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=5Ferro= rs 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