i40e: fix stats reset
authorHarry van Haaren <harry.van.haaren@intel.com>
Mon, 9 Nov 2015 10:22:22 +0000 (10:22 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 11 Nov 2015 18:38:47 +0000 (19:38 +0100)
This patch fixes a bug where only some of the statistics were being
reset when calling rte_eth_stats_reset() or rte_eth_xstats_reset().
As both the stats reset and xstats reset do the same, refactor away
the duplicated function.

This patch marks the VSI to update its offset, causing the stats be
look like they are reset.

Fixes: 9aace75fc82e ("i40e: fix statistics")

Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com>
Acked-by: Maryam Tahhan <maryam.tahhan@intel.com>

No differences found