From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from proxy.6wind.com (host.76.145.23.62.rev.coltfrance.com [62.23.145.76]) by dpdk.org (Postfix) with ESMTP id C242C1D8E; Thu, 14 Dec 2017 15:23:32 +0100 (CET) Received: from glumotte.dev.6wind.com (unknown [10.16.0.195]) by proxy.6wind.com (Postfix) with ESMTP id 98C1D114576; Thu, 14 Dec 2017 15:15:07 +0100 (CET) From: Olivier Matz To: dev@dpdk.org, Thomas Monjalon Cc: stable@dpdk.org, Thibaut Collet Date: Thu, 14 Dec 2017 15:23:00 +0100 Message-Id: <20171214142300.25205-1-olivier.matz@6wind.com> X-Mailer: git-send-email 2.11.0 Subject: [dpdk-dev] [PATCH] ethdev: fix missing imissed counter in xstats X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Dec 2017 14:23:32 -0000 imissed counter has been set as deprecated in commit 49f386542af4 ("ethdev: remove driver specific stats") and removed from the rte_eth_xstats_name_off structure. The imissed counter has been restored few commits later but has not been restored in the rte_eth_stats structure. Add it back. Fixes: 4eadb8ba11b7 ("ethdev: do not deprecate imissed counter") Cc: stable@dpdk.org Signed-off-by: Thibaut Collet Signed-off-by: Olivier Matz --- lib/librte_ether/rte_ethdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c index 318af2869..4f492e3db 100644 --- a/lib/librte_ether/rte_ethdev.c +++ b/lib/librte_ether/rte_ethdev.c @@ -93,6 +93,7 @@ static const struct rte_eth_xstats_name_off rte_stats_strings[] = { {"tx_good_packets", offsetof(struct rte_eth_stats, opackets)}, {"rx_good_bytes", offsetof(struct rte_eth_stats, ibytes)}, {"tx_good_bytes", offsetof(struct rte_eth_stats, obytes)}, + {"rx_missed_errors", offsetof(struct rte_eth_stats, imissed)}, {"rx_errors", offsetof(struct rte_eth_stats, ierrors)}, {"tx_errors", offsetof(struct rte_eth_stats, oerrors)}, {"rx_mbuf_allocation_errors", offsetof(struct rte_eth_stats, -- 2.11.0