app/testpmd: fix latency stats deinit on signal
authorAmit Gupta <agupta3@marvell.com>
Wed, 7 Aug 2019 13:12:09 +0000 (18:42 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 8 Aug 2019 10:13:05 +0000 (12:13 +0200)
commit8b36297d15f90265b50fae211157dff573513359
treef4ad5c3f89e269de46b8fdce8610773218328d41
parentde4473d911323ae1d26581c2f85abee5d1aaeb81
app/testpmd: fix latency stats deinit on signal

On receiving signal, testpmd showing warning as
"LATENCY_STATS: failed to remove Rx/Tx callback"
because rte_latencystats_uninit is called without
checking if latencystats is enabled or not.

After this fix, rte_latencystats_uninit will be
called only if latencystats is enabled.

Fixes: 62d3216d6194 ("app/testpmd: add latency statistics calculation")
Cc: stable@dpdk.org
Signed-off-by: Amit Gupta <agupta3@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
Tested-by: Jerin Jacob <jerinj@marvell.com>
app/test-pmd/testpmd.c