git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81b0fbb
)
net/sfc: fix getting accumulative SW xstat
author
Ivan Ilchenko
<ivan.ilchenko@oktetlabs.ru>
Wed, 15 Sep 2021 10:40:17 +0000
(13:40 +0300)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Tue, 21 Sep 2021 08:32:30 +0000
(10:32 +0200)
Add missing initialisation of the accumulative SW xstat to
zero since it is sum of per-queue xstats.
Fixes:
fdd7719eb3c1
("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>
drivers/net/sfc/sfc_sw_stats.c
patch
|
blob
|
history
diff --git
a/drivers/net/sfc/sfc_sw_stats.c
b/drivers/net/sfc/sfc_sw_stats.c
index
8489b60
..
2b28ba2
100644
(file)
--- 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;