[dpdk-stable] [PATCH] net/sfc: fix getting accumulative SW xstat
Andrew Rybchenko
andrew.rybchenko at oktetlabs.ru
Wed Sep 15 12:40:17 CEST 2021
From: Ivan Ilchenko <ivan.ilchenko at oktetlabs.ru>
Add missing initialisation of the accumulative SW xstat to
zero since it is sum of per-queue xstats.
Fixes: fdd7719eb3c ("net/sfc: add xstats for Rx/Tx doorbells")
Cc: stable at dpdk.org
Signed-off-by: Ivan Ilchenko <ivan.ilchenko at oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <andrew.rybchenko at oktetlabs.ru>
---
drivers/net/sfc/sfc_sw_stats.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/sfc/sfc_sw_stats.c b/drivers/net/sfc/sfc_sw_stats.c
index 8489b603f5..2b28ba29e6 100644
--- a/drivers/net/sfc/sfc_sw_stats.c
+++ b/drivers/net/sfc/sfc_sw_stats.c
@@ -313,6 +313,7 @@ sfc_sw_xstat_get_values_by_id(struct sfc_adapter *sa,
}
if (count_accum_value) {
+ values[accum_value_idx] = 0;
for (qid = 0; qid < nb_queues; ++qid) {
if (rte_bitmap_get(bmp, qid) != 0)
continue;
--
2.30.2
More information about the stable
mailing list