From: Yuri Chipchev Date: Mon, 1 Jul 2019 08:00:23 +0000 (+0300) Subject: net/mvneta: reset stats during device init X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=15ae783a15c560a074a8ebdac7a6fa0f1e26bfbd;p=dpdk.git net/mvneta: reset stats during device init reset device statistics on device initialization Signed-off-by: Yuri Chipchev Reviewed-by: Liron Himi Tested-by: Yuri Chipchev --- diff --git a/drivers/net/mvneta/mvneta_ethdev.c b/drivers/net/mvneta/mvneta_ethdev.c index d6e64a8495..f324d93fcd 100644 --- a/drivers/net/mvneta/mvneta_ethdev.c +++ b/drivers/net/mvneta/mvneta_ethdev.c @@ -57,6 +57,8 @@ struct mvneta_ifnames { static int mvneta_dev_num; +static void mvneta_stats_reset(struct rte_eth_dev *dev); + /** * Deinitialize packet processor. */ @@ -359,6 +361,8 @@ mvneta_dev_start(struct rte_eth_dev *dev) } priv->ppio_id = priv->ppio->port_id; + mvneta_stats_reset(dev); + /* * In case there are some some stale uc/mc mac addresses flush them * here. It cannot be done during mvneta_dev_close() as port information