RE: [PATCH] net/ice: fix statistics

2023-05-14 Thread Zhang, Qi Z
> -Original Message- > From: Ye, MingjinX > Sent: Thursday, May 11, 2023 10:11 AM > To: dev@dpdk.org > Cc: Yang, Qiming ; sta...@dpdk.org; Zhou, YidingX > ; Ye, MingjinX ; Zhang, Qi > Z > Subject: [PATCH] net/ice: fix statistics > > When the stats_get ap

[PATCH] net/ice: fix statistics

2023-05-10 Thread Mingjin Ye
When the stats_get api is called for the first time in pmd, the offset of the stats register is not recorded. That results in all the obtained count values being 0. This patch adds reset statistics before dev_init returning. That avoids some noise being counted. Fixes: 12443386a0b0 ("net/ice: sup