From c31117cdd60c9efbaf9d7f8a1d172ae8e0c572e9 Mon Sep 17 00:00:00 2001 From: Olivier Matz Date: Mon, 11 Dec 2017 11:26:08 +0100 Subject: [PATCH] ethdev: fix missing imissed counter in xstats 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 again. 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 318af28697..4f492e3dbb 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.20.1