diff options
Diffstat (limited to 'vnet/vnet/devices/dpdk/dpdk_priv.h')
-rw-r--r-- | vnet/vnet/devices/dpdk/dpdk_priv.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vnet/vnet/devices/dpdk/dpdk_priv.h b/vnet/vnet/devices/dpdk/dpdk_priv.h index 0abe6306c89..fd4f2d7ed0b 100644 --- a/vnet/vnet/devices/dpdk/dpdk_priv.h +++ b/vnet/vnet/devices/dpdk/dpdk_priv.h @@ -88,7 +88,7 @@ dpdk_update_counters (dpdk_device_t * xd, f64 now) u64 rxerrors, last_rxerrors; /* only update counters for PMD interfaces */ - if (xd->dev_type != VNET_DPDK_DEV_ETH) + if ((xd->flags & DPDK_DEVICE_FLAG_PMD) == 0) return; xd->time_last_stats_update = now ? now : xd->time_last_stats_update; |