From mboxrd@z Thu Jan 1 00:00:00 1970 From: Remy Horton Subject: rte_ether: Driver-specific stats getting overwritten Date: Thu, 14 Jul 2016 14:29:17 +0100 Message-ID: <1195a38d-8615-03d2-22eb-04f6b071d38b@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: thomas.monjalon@6wind.com To: dev@dpdk.org Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 4EB8247CD for ; Thu, 14 Jul 2016 15:29:20 +0200 (CEST) List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 'noon, In rte_eth_stats_get() after doing the driver callout to populate struct rte_eth_stats, the rx_nombuf member is overwritten with dev->data->rx_mbuf_alloc_failed even though some drivers will have filled rx_nombuf with a value from elsewhere. This makes assignment of rx_nombuf from within the driver callout redundant. Is this intentional? ..Remy