summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorFilip Tehlar <ftehlar@cisco.com>2019-09-03 14:21:05 +0000
committerDamjan Marion <dmarion@me.com>2019-09-05 10:32:17 +0000
commit254c1b0ddf8283284c538cf7d7a136001304d81b (patch)
tree31494ff3528d7ac457e898c5a73bac8e70d72874 /src/plugins
parent4682feb1f0b15d0f1940cd5984ae82ccaea168f7 (diff)
dpdk: fix extended stats
Extended stats are not displayed due to incorrect condition. Type: fix Change-Id: Ie04664e6274137462dce832bf7ee06204cd77be5 Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/dpdk/device/format.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/dpdk/device/format.c b/src/plugins/dpdk/device/format.c
index d57dc34584e..942def63b0a 100644
--- 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)