summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugins/dpdk/device/dpdk_priv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/dpdk/device/dpdk_priv.h b/src/plugins/dpdk/device/dpdk_priv.h
index a95d03cfba4..7c4091c1be5 100644
--- a/src/plugins/dpdk/device/dpdk_priv.h
+++ b/src/plugins/dpdk/device/dpdk_priv.h
@@ -62,6 +62,8 @@ typedef struct
static inline void
dpdk_get_xstats (dpdk_device_t * xd)
{
+ if (!(xd->flags & DPDK_DEVICE_FLAG_ADMIN_UP))
+ return;
int len;
if ((len = rte_eth_xstats_get (xd->device_index, NULL, 0)) > 0)
{