summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2022-03-21 21:08:00 +0100
committerFlorin Coras <florin.coras@gmail.com>2022-03-21 21:13:31 +0000
commitf0574da2b75f3e035362996d6e1246150eb64bea (patch)
tree6175b336a699f9c25b979d6ed361d2840e2713da /src
parente09bd48e354d8701091437cafda6b29163ed2d58 (diff)
stats: fix vlib_stats_validate_will_expand_internal
Type: fix Change-Id: If4c0b23aaa4fc57c0783efcbe349aba5e5885b30 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/vlib/stats/stats.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vlib/stats/stats.c b/src/vlib/stats/stats.c
index 75c3986f3b9..61f620469b1 100644
--- a/src/vlib/stats/stats.c
+++ b/src/vlib/stats/stats.c
@@ -412,7 +412,7 @@ vlib_stats_validate_will_expand_internal (u32 entry_index, va_list *va)
goto done;
for (u32 i = 0; i <= idx0; i++)
- if (idx1 >= vec_max_len (data[idx0]))
+ if (idx1 >= vec_max_len (data[i]))
goto done;
}
else if (e->type == STAT_DIR_TYPE_COUNTER_VECTOR_COMBINED)
@@ -427,7 +427,7 @@ vlib_stats_validate_will_expand_internal (u32 entry_index, va_list *va)
goto done;
for (u32 i = 0; i <= idx0; i++)
- if (idx1 >= vec_max_len (data[idx0]))
+ if (idx1 >= vec_max_len (data[i]))
goto done;
}
else
e='h' value='oper-230821'/>
path: root/resources/libraries/python/DpdkUtil.py
blob: 30efbde378b4ef0d0c17536290e6c4e2d7cc0fb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168