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:
4682feb
)
dpdk: fix extended stats
74/21774/2
author
Filip Tehlar
<ftehlar@cisco.com>
Tue, 3 Sep 2019 14:21:05 +0000
(14:21 +0000)
committer
Damjan Marion
<dmarion@me.com>
Thu, 5 Sep 2019 10:32:17 +0000
(10:32 +0000)
Extended stats are not displayed due to incorrect condition.
Type: fix
Change-Id: Ie04664e6274137462dce832bf7ee06204cd77be5
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
src/plugins/dpdk/device/format.c
patch
|
blob
|
history
diff --git
a/src/plugins/dpdk/device/format.c
b/src/plugins/dpdk/device/format.c
index
d57dc34
..
942def6
100644
(file)
--- a/
src/plugins/dpdk/device/format.c
+++ b/
src/plugins/dpdk/device/format.c
@@
-668,7
+668,7
@@
format_dpdk_device (u8 * s, va_list * args)
vec_validate (xstat_names, len - 1);
int ret = rte_eth_xstats_get_names (xd->port_id, xstat_names, len);
- if (ret
< 0 || ret >
len)
+ if (ret
>= 0 && ret <=
len)
{
/* *INDENT-OFF* */
vec_foreach_index(i, xd->xstats)