From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 6068B688E for ; Mon, 30 Nov 2015 13:18:44 +0100 (CET) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP; 30 Nov 2015 04:18:42 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,364,1444719600"; d="scan'208";a="696770381" Received: from irsmsx105.ger.corp.intel.com ([163.33.3.28]) by orsmga003.jf.intel.com with ESMTP; 30 Nov 2015 04:18:43 -0800 Received: from irsmsx102.ger.corp.intel.com ([169.254.2.251]) by irsmsx105.ger.corp.intel.com ([169.254.7.203]) with mapi id 14.03.0248.002; Mon, 30 Nov 2015 12:18:41 +0000 From: "Van Haaren, Harry" To: "users@dpdk.org" , "sridhariyer@versa-networks.com" Thread-Topic: Re: [dpdk-users] e1000 port stats Thread-Index: AdEraAK9Av+ar5aRTJSATtoUszLGkA== Date: Mon, 30 Nov 2015 12:18:40 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-inteldataclassification: CTP_IC x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsIiwiaWQiOiJhZDY2M2JmOC0yNDUwLTRiYjctYTNjMS1lZGE1NzMzMzlkM2QiLCJwcm9wcyI6W3sibiI6IkludGVsRGF0YUNsYXNzaWZpY2F0aW9uIiwidmFscyI6W3sidmFsdWUiOiJDVFBfSUMifV19XX0sIlN1YmplY3RMYWJlbHMiOltdLCJUTUNWZXJzaW9uIjoiMTUuNC4xMC4xOSIsIlRydXN0ZWRMYWJlbEhhc2giOiJPY0VlRTl1TWR1UXNDZkZWXC9GY1d0U1lNaG5WY0lBVDBFcEJPa3g1RnU2OD0ifQ== x-originating-ip: [163.33.239.181] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-users] e1000 port stats X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Nov 2015 12:18:44 -0000 > Hi, Hi Sridhar, > In DPDK/lib/librte_pmd_e1000/em_ethdev.c:889 (eth_em_stats_get), for some= reason, ibytes and obytes are not getting update, ipackets/opackets seem t= o be fine (kvm using e1000) I've recently sent some patches regarding stats for the e1000 PMD. > (gdb) p *rte_stats > $3 =3D {ipackets =3D 228635, opackets =3D 350, ibytes =3D 0, obytes =3D 0= , imissed =3D 0, ibadcrc =3D 0, ibadlen =3D 0, ierrors =3D The following commit in git fixed the issue you are experiencing: 67b38d9 e1000: fix total byte statistics > This works fine on esxi guests using e1000. I presume you are passing a VF to esxi? The igbvf PMD has a different stats= _get() function to the igb PF PMD, so the bug would not be visible there. > I'm using dpdk 1.7. Any pointers would be great. As stated, Git includes the fix, along with some more updates like providin= g extended statistics via the xstats_get() API. The commit mentioned above is a small code-change and fixes your immediate = bug - it will probably apply cleanly to 1.7, otherwise it's an easy backpor= t. -Harry