From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.mhcomputing.net (master.mhcomputing.net [74.208.228.170]) by dpdk.org (Postfix) with ESMTP id D5869379E for ; Fri, 22 Jan 2016 21:48:51 +0100 (CET) Received: by mail.mhcomputing.net (Postfix, from userid 1000) id 353C714C; Fri, 22 Jan 2016 15:48:51 -0500 (EST) Date: Fri, 22 Jan 2016 15:48:51 -0500 From: Matthew Hall To: Igor Ryzhov Message-ID: <20160122204851.GC22985@mhcomputing.net> References: <74583418c4374c349bfdea0c59b84118@XCH-RCD-016.cisco.com> <1A27633A6DA49C4A92FCD5D4312DBF536B09F7A4@IRSMSX106.ger.corp.intel.com> <27428043.8pduO1a1Qt@xps13> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: dev@dpdk.org Subject: Re: [dpdk-dev] Future Direction for rte_eth_stats_get() 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, 22 Jan 2016 20:48:52 -0000 On Fri, Jan 22, 2016 at 06:02:24PM +0300, Igor Ryzhov wrote: > How about exposing stats according to IF-MIB? > > Statistics to be exposed are - octets, unicast packets, multicast packets, > broadcast packets, errors and discards for both TX and RX. > > These counters are basic and implemented by most of drivers. To be a bit more specific it would be good to have IF-MIB ifTable with the items from ifXTable as well: ifIndex ifMtu ifHighSpeed ifPromiscuousMode ifPhysAddress ifConnectorPresent ifHCInOctets ifHCInUcastPkts ifHCInMulticastPkts ifHCInBroadcastPkts ifInDiscards ifInErrors ifInUnknownProtos ifHCOutOctets ifHCOutUcastPkts ifHCOutMulticastPkts ifHCOutBroadcastPkts ifOutDiscards ifOutErrors A number of things are missing or weird in the DPDK stats interface. Then I get stuck trying to maintain them in my app instead and it's annoying. Also, it is nice to get the struct populated atomically so the values are as self-consistent as possible. If you have to call a function separately on each stat it makes them self-inconsistent because it is less atomically populated. >>From long experience, this inconsistency is quite annoying when trying to make very accurate traffic measurements in network management software. Matthew.