On 16/09/2020 10:58, Kevin Traynor wrote:
> rte_eth_xstats_reset() was mistakenly removed from
> nic_xstats_clear() in fixed commit during rebasing.
>
> This caused the xstats not be be cleared when
> 'clear port xstats all' was executed from the testpmd
> command line.
>
> Fix by adding back rte_eth_xstats_reset().
>
> Fixes: 3e64dd9f527d ("app/testpmd: fix stats error message")
>
> Cc: Wei Hu (Xavier) <xavier.huwei@huawei.com>
> Signed-off-by: Kevin Traynor <ktraynor@redhat.com>
> ---
> app/test-pmd/config.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c
> index 3b588e2042..3d854099d2 100644
> --- a/app/test-pmd/config.c
> +++ b/app/test-pmd/config.c
> @@ -319,4 +319,5 @@ nic_xstats_clear(portid_t port_id)
> return;
> }
> + rte_eth_xstats_reset(port_id);
>
> ret = rte_eth_stats_get(port_id, &ports[port_id].stats);
>
Tested and applied.