patches for DPDK stable branches
 help / color / mirror / Atom feed
* [PATCH] net/iavf: fix port stats not cleared
@ 2023-08-30  6:54 Yiding Zhou
  2023-09-05  8:06 ` Liao, TingtingX
  2023-09-07  2:39 ` [PATCH v2] " Yiding Zhou
  0 siblings, 2 replies; 4+ messages in thread
From: Yiding Zhou @ 2023-08-30  6:54 UTC (permalink / raw)
  To: dev; +Cc: Yiding Zhou, stable, Kuan Xu

Call 'iavf_dev_stats_reset' during the initialization of the VF in order
to clear any statistics that may exist from the last use of the VF and to
avoid statistics errors.

Fixes: 22b123a36d07 ("net/avf: initialize PMD")
Cc: stable@dpdk.org

Signed-off-by: Kuan Xu <kuanx.xu@intel.com>
Signed-off-by: Yiding Zhou <yidingx.zhou@intel.com>
---
 drivers/net/iavf/iavf_ethdev.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/iavf/iavf_ethdev.c b/drivers/net/iavf/iavf_ethdev.c
index f2fc5a5621..24c6342dee 100644
--- a/drivers/net/iavf/iavf_ethdev.c
+++ b/drivers/net/iavf/iavf_ethdev.c
@@ -2721,6 +2721,7 @@ iavf_dev_init(struct rte_eth_dev *eth_dev)
 
 	iavf_default_rss_disable(adapter);
 
+	iavf_dev_stats_reset(eth_dev);
 
 	/* Start device watchdog */
 	iavf_dev_watchdog_enable(adapter);
-- 
2.34.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-09-11  0:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-30  6:54 [PATCH] net/iavf: fix port stats not cleared Yiding Zhou
2023-09-05  8:06 ` Liao, TingtingX
2023-09-07  2:39 ` [PATCH v2] " Yiding Zhou
2023-09-11  0:42   ` Zhang, Qi Z

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).