eth_stats is already cleared by rte_eth_stats_get

Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
---
 lib/librte_ether/rte_ethdev.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c
index 024fe8b..5a94654 100644
--- a/lib/librte_ether/rte_ethdev.c
+++ b/lib/librte_ether/rte_ethdev.c
@@ -1766,7 +1766,6 @@ rte_eth_xstats_get(uint8_t port_id, struct rte_eth_xstats 
*xstats,
        /* now fill the xstats structure */

        count = 0;
-       memset(&eth_stats, 0, sizeof(eth_stats));
        rte_eth_stats_get(port_id, &eth_stats);

        /* global stats */
-- 
2.1.4

Reply via email to