From: Yuri Chipchev <[email protected]>
Change-Id: I5e46a1c930759d059816fa851697df95f7333b51
Signed-off-by: Yuri Chipchev <[email protected]>
Reviewed-by: Liron Himi <[email protected]>
Tested-by: Yuri Chipchev <[email protected]>
---
drivers/net/mvneta/mvneta_ethdev.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/net/mvneta/mvneta_ethdev.c
b/drivers/net/mvneta/mvneta_ethdev.c
index d6e64a8..f324d93 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
--
2.7.4