aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/dpdk/device/device.c
diff options
context:
space:
mode:
authorFilip Tehlar <ftehlar@cisco.com>2019-06-04 01:22:55 +0000
committerDamjan Marion <dmarion@me.com>2019-06-06 12:07:09 +0000
commit831f4200cab2b363f2a8ea340331343c14407b7d (patch)
tree0c69ad2f1ad66cb0429dd7ca85b98eda7d07ab32 /src/plugins/dpdk/device/device.c
parenta342da22f35676114ca928c65b0219fac8009f7a (diff)
dpdk: fix clear hw stats
.. and remove helper stat struct for keeping last cleared stats. This is not needed anymore as dpdk lib provides rte_eth_dev_reset(). Change-Id: I78076e689aac7ca70836ce688dfa8e704f64cd84 Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'src/plugins/dpdk/device/device.c')
-rw-r--r--src/plugins/dpdk/device/device.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/dpdk/device/device.c b/src/plugins/dpdk/device/device.c
index 836357f1c9e..270abe19190 100644
--- a/src/plugins/dpdk/device/device.c
+++ b/src/plugins/dpdk/device/device.c
@@ -397,6 +397,7 @@ dpdk_clear_hw_interface_counters (u32 instance)
dpdk_main_t *dm = &dpdk_main;
dpdk_device_t *xd = vec_elt_at_index (dm->devices, instance);
+ rte_eth_stats_reset (xd->port_id);
rte_eth_xstats_reset (xd->port_id);
}