diff options
author | Filip Tehlar <ftehlar@cisco.com> | 2019-06-04 01:22:55 +0000 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2019-06-06 12:07:09 +0000 |
commit | 831f4200cab2b363f2a8ea340331343c14407b7d (patch) | |
tree | 0c69ad2f1ad66cb0429dd7ca85b98eda7d07ab32 /src/plugins/dpdk/device/format.c | |
parent | a342da22f35676114ca928c65b0219fac8009f7a (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/format.c')
-rw-r--r-- | src/plugins/dpdk/device/format.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/dpdk/device/format.c b/src/plugins/dpdk/device/format.c index be2349d9e9d..7bba3eb4b6e 100644 --- a/src/plugins/dpdk/device/format.c +++ b/src/plugins/dpdk/device/format.c @@ -646,11 +646,11 @@ format_dpdk_device (u8 * s, va_list * args) /* $$$ MIB counters */ { #define _(N, V) \ - if ((xd->stats.V - xd->last_cleared_stats.V) != 0) { \ + if (xd->stats.V != 0) { \ s = format (s, "\n%U%-40U%16Lu", \ format_white_space, indent + 2, \ format_c_identifier, #N, \ - xd->stats.V - xd->last_cleared_stats.V); \ + xd->stats.V); \ } \ foreach_dpdk_counter |