diff options
Diffstat (limited to 'src/plugins/dpdk/device')
-rw-r--r-- | src/plugins/dpdk/device/format.c | 2 |
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) |