net/sfc: fix getting accumulative SW xstat
Add missing initialisation of the accumulative SW xstat to
zero since it is sum of per-queue xstats.
Fixes: fdd7719eb3
("net/sfc: add xstats for Rx/Tx doorbells")
Cc: stable@dpdk.org
Signed-off-by: Ivan Ilchenko <ivan.ilchenko@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
This commit is contained in:
parent
81b0fbb85b
commit
67f1b4f174
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user