Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
a391de6
)
dev: fix counter_start in counter clear routine
92/40892/2
author
Monendra Singh Kushwaha
<
[email protected]
>
Thu, 16 May 2024 06:54:37 +0000
(12:24 +0530)
committer
Damjan Marion
<
[email protected]
>
Mon, 10 Jun 2024 12:54:36 +0000
(12:54 +0000)
This patch fixes counter_start value, as it should hold the cumulative
counter value whenever counter clear routine is called.
Type: fix
Fixes:
38c619115b
Change-Id: I50bf8ddcde419caf1170dfacdea03ff3d93a3327
Signed-off-by: Monendra Singh Kushwaha <
[email protected]
>
src/vnet/dev/counters.c
patch
|
blob
|
history
diff --git
a/src/vnet/dev/counters.c
b/src/vnet/dev/counters.c
index
0a1e0a7
..
d02839d
100644
(file)
--- a/
src/vnet/dev/counters.c
+++ b/
src/vnet/dev/counters.c
@@
-54,7
+54,7
@@
vnet_dev_counters_clear (vlib_main_t *vm, vnet_dev_counter_main_t *cm)
{
for (int i = 0; i < cm->n_counters; i++)
{
- cm->counter_start[i] = cm->counter_data[i];
+ cm->counter_start[i]
+
= cm->counter_data[i];
cm->counter_data[i] = 0;
}
}