From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2 1/2] ethdev: stop overriding rx_nombuf by rte_eth_stats_get Date: Wed, 23 Aug 2017 09:51:45 +0200 Message-ID: <1679481.0OI12NtS3X@xps> References: <20170823011937.37579-1-dharton@cisco.com> <20170823025555.19022-1-dharton@cisco.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: David Harton Return-path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id 0CCEF7D4F for ; Wed, 23 Aug 2017 09:51:47 +0200 (CEST) In-Reply-To: <20170823025555.19022-1-dharton@cisco.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 23/08/2017 04:55, David Harton: > rte_eth_stats_get() unconditonally would set rx_nombuf > even if the device was setting the value. A check has > been added in rte_eth_stats_get() to leave the device > value in-tact when non-zero. If we get this counter from stats->rx_nombuf, why keeping dev->data->rx_mbuf_alloc_failed ? We could rework other PMDs to not use this global variable. It is inconsistent to use it for some PMDs but not all. And it seems not used outside of PMDs.