patches for DPDK stable branches
 help / color / mirror / Atom feed
* [dpdk-stable] [PATCH] app/testpmd: fix latencystats deinit on signal
@ 2019-08-07 13:12 agupta3
  2019-08-08  8:54 ` [dpdk-stable] [dpdk-dev] " Jerin Jacob Kollanukkaran
  0 siblings, 1 reply; 3+ messages in thread
From: agupta3 @ 2019-08-07 13:12 UTC (permalink / raw)
  To: Wenzhuo Lu, Jingjing Wu, Bernard Iremonger; +Cc: dev, stable, Amit Gupta

From: Amit Gupta <agupta3@marvell.com>

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 onlyif latencystats is enabled.

Fixes: 62d3216d6194 ("app/testpmd: add latency statistics calculation")
Cc: stable@dpdk.org

Signed-off-by: Amit Gupta <agupta3@marvell.com>
---
 app/test-pmd/testpmd.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c
index a461cef..e8e2a39 100644
--- a/app/test-pmd/testpmd.c
+++ b/app/test-pmd/testpmd.c
@@ -3212,7 +3212,8 @@ uint8_t port_is_bonding_slave(portid_t slave_pid)
 		rte_pdump_uninit();
 #endif
 #ifdef RTE_LIBRTE_LATENCY_STATS
-		rte_latencystats_uninit();
+		if (latencystats_enabled != 0)
+			rte_latencystats_uninit();
 #endif
 		force_quit();
 		/* Set flag to indicate the force termination. */
-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-stable] [dpdk-dev] [PATCH] app/testpmd: fix latencystats deinit on signal
  2019-08-07 13:12 [dpdk-stable] [PATCH] app/testpmd: fix latencystats deinit on signal agupta3
@ 2019-08-08  8:54 ` Jerin Jacob Kollanukkaran
  2019-08-08 10:15   ` Thomas Monjalon
  0 siblings, 1 reply; 3+ messages in thread
From: Jerin Jacob Kollanukkaran @ 2019-08-08  8:54 UTC (permalink / raw)
  To: Amit Gupta, Wenzhuo Lu, Jingjing Wu, Bernard Iremonger
  Cc: dev, stable, Amit Gupta

> -----Original Message-----
> From: dev <dev-bounces@dpdk.org> On Behalf Of agupta3@marvell.com
> Sent: Wednesday, August 7, 2019 6:42 PM
> To: Wenzhuo Lu <wenzhuo.lu@intel.com>; Jingjing Wu
> <jingjing.wu@intel.com>; Bernard Iremonger <bernard.iremonger@intel.com>
> Cc: dev@dpdk.org; stable@dpdk.org; Amit Gupta <agupta3@marvell.com>
> Subject: [dpdk-dev] [PATCH] app/testpmd: fix latencystats deinit on signal
> 
> From: Amit Gupta <agupta3@marvell.com>
> 
> 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 onlyif 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 | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index
> a461cef..e8e2a39 100644
> --- a/app/test-pmd/testpmd.c
> +++ b/app/test-pmd/testpmd.c
> @@ -3212,7 +3212,8 @@ uint8_t port_is_bonding_slave(portid_t slave_pid)
>  		rte_pdump_uninit();
>  #endif
>  #ifdef RTE_LIBRTE_LATENCY_STATS
> -		rte_latencystats_uninit();
> +		if (latencystats_enabled != 0)
> +			rte_latencystats_uninit();
>  #endif
>  		force_quit();
>  		/* Set flag to indicate the force termination. */
> --
> 1.8.3.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-stable] [dpdk-dev] [PATCH] app/testpmd: fix latencystats deinit on signal
  2019-08-08  8:54 ` [dpdk-stable] [dpdk-dev] " Jerin Jacob Kollanukkaran
@ 2019-08-08 10:15   ` Thomas Monjalon
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Monjalon @ 2019-08-08 10:15 UTC (permalink / raw)
  To: Amit Gupta
  Cc: stable, Jerin Jacob Kollanukkaran, Wenzhuo Lu, Jingjing Wu,
	Bernard Iremonger, dev

08/08/2019 10:54, Jerin Jacob Kollanukkaran:
> > From: Amit Gupta <agupta3@marvell.com>
> > 
> > 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 onlyif 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>

Applied, thanks




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-08-08 10:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-07 13:12 [dpdk-stable] [PATCH] app/testpmd: fix latencystats deinit on signal agupta3
2019-08-08  8:54 ` [dpdk-stable] [dpdk-dev] " Jerin Jacob Kollanukkaran
2019-08-08 10:15   ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).