* [dpdk-stable] [PATCH] lib/latencystats: free up the memzone
@ 2018-07-26 16:50 Reshma Pattan
2018-08-01 10:36 ` Remy Horton
0 siblings, 1 reply; 3+ messages in thread
From: Reshma Pattan @ 2018-07-26 16:50 UTC (permalink / raw)
To: dev; +Cc: stable, remy.horton, Reshma Pattan
Free up the memzone allocated during the
rte_latencystats_init().
Fixes: 5cd3cac9ed ("latency: added new library for latency stats")
CC: stable@dpdk.org
CC: remy.horton@intel.com
Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
---
lib/librte_latencystats/rte_latencystats.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/lib/librte_latencystats/rte_latencystats.c b/lib/librte_latencystats/rte_latencystats.c
index 46c69bf05..1fdec68e3 100644
--- a/lib/librte_latencystats/rte_latencystats.c
+++ b/lib/librte_latencystats/rte_latencystats.c
@@ -1,5 +1,5 @@
/* SPDX-License-Identifier: BSD-3-Clause
- * Copyright(c) 2017 Intel Corporation
+ * Copyright(c) 2018 Intel Corporation
*/
#include <unistd.h>
@@ -265,6 +265,7 @@ rte_latencystats_uninit(void)
uint16_t qid;
int ret = 0;
struct rxtx_cbs *cbs = NULL;
+ const struct rte_memzone *mz = NULL;
/** De register Rx/Tx callbacks */
RTE_ETH_FOREACH_DEV(pid) {
@@ -288,6 +289,11 @@ rte_latencystats_uninit(void)
}
}
+ /* free up the memzone */
+ mz = rte_memzone_lookup(MZ_RTE_LATENCY_STATS);
+ if (mz)
+ rte_memzone_free(mz);
+
return 0;
}
--
2.14.4
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-stable] [PATCH] lib/latencystats: free up the memzone
2018-07-26 16:50 [dpdk-stable] [PATCH] lib/latencystats: free up the memzone Reshma Pattan
@ 2018-08-01 10:36 ` Remy Horton
2018-08-01 16:04 ` [dpdk-stable] [dpdk-dev] " Thomas Monjalon
0 siblings, 1 reply; 3+ messages in thread
From: Remy Horton @ 2018-08-01 10:36 UTC (permalink / raw)
To: Reshma Pattan, dev; +Cc: stable
On 26/07/2018 17:50, Reshma Pattan wrote:
> Free up the memzone allocated during the
> rte_latencystats_init().
>
> Fixes: 5cd3cac9ed ("latency: added new library for latency stats")
> CC: stable@dpdk.org
> CC: remy.horton@intel.com
>
> Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
Acked-by: Remy Horton <remy.horton@intel.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-stable] [dpdk-dev] [PATCH] lib/latencystats: free up the memzone
2018-08-01 10:36 ` Remy Horton
@ 2018-08-01 16:04 ` Thomas Monjalon
0 siblings, 0 replies; 3+ messages in thread
From: Thomas Monjalon @ 2018-08-01 16:04 UTC (permalink / raw)
To: Reshma Pattan; +Cc: dev, Remy Horton, stable
01/08/2018 12:36, Remy Horton:
>
> On 26/07/2018 17:50, Reshma Pattan wrote:
> > Free up the memzone allocated during the
> > rte_latencystats_init().
> >
> > Fixes: 5cd3cac9ed ("latency: added new library for latency stats")
> > CC: stable@dpdk.org
> > CC: remy.horton@intel.com
> >
> > Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
>
> Acked-by: Remy Horton <remy.horton@intel.com>
Applied, thanks
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-08-01 16:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-26 16:50 [dpdk-stable] [PATCH] lib/latencystats: free up the memzone Reshma Pattan
2018-08-01 10:36 ` Remy Horton
2018-08-01 16:04 ` [dpdk-stable] [dpdk-dev] " 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).