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 187D33239 for ; Fri, 18 Sep 2015 10:04:56 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP; 18 Sep 2015 01:04:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,551,1437462000"; d="scan'208";a="807911579" Received: from irsmsx104.ger.corp.intel.com ([163.33.3.159]) by fmsmga002.fm.intel.com with ESMTP; 18 Sep 2015 01:04:55 -0700 Received: from irsmsx102.ger.corp.intel.com ([169.254.2.160]) by IRSMSX104.ger.corp.intel.com ([163.33.3.159]) with mapi id 14.03.0248.002; Fri, 18 Sep 2015 09:04:54 +0100 From: "Van Haaren, Harry" To: Igor Ryzhov , "dev@dpdk.org" Thread-Topic: [dpdk-dev] IXGBE error statistics Thread-Index: AQHQ8Y8tRCIjRv2LIEaSAC7z18hrL55B63gQ Date: Fri, 18 Sep 2015 08:04:54 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: 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-dev] IXGBE error statistics 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: Fri, 18 Sep 2015 08:04:57 -0000 > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Igor Ryzhov > Hello everyone. Hi Igor, > Investigating IXGBE driver I found an mspdc counter (MAC Short Packet > Discard). And I am wondering why this counter is not used in the calculat= ion > of total RX errors (ierrors field in rte_eth_stats structure). Is it alre= ady a part > of another counter, for example, rlec (Receive Length Error)? Or is it a = bug? There has been a discussion on list recently involving ixgbe stats, and cer= tain packets triggering multiple stats registers - the datasheet doesn't mention this could be the case for the mspdc register, I will research this issue a= nd get back to you. > Another one question is about incompleteness of rte_eth_stats structure. > IXGBE and other drivers have a lot of counters but only a part of them is > represented in rte_eth_stats. Is there any valuable reasons for that or i= t's > just not implemented? The rte_eth_stats struct presents the most general statistics that every NI= C exposes. In 2.1, and extended statistics API was added which allows NICs to expose s= tats that are unique to that NIC. Currently ixgbe is the only driver that has th= e xstats API implemented, I am working on patches to implement the functionality for the= other Intel drivers. As part of testing the xstats implementation for each driver, I can test th= e exact behavior of the mspdc counter, and if it is mis-counted this should become = clear. Cheers, -Harry