git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mem: add external API to retrieve page fd
[dpdk.git]
/
lib
/
librte_latencystats
/
rte_latencystats.c
diff --git
a/lib/librte_latencystats/rte_latencystats.c
b/lib/librte_latencystats/rte_latencystats.c
index
46c69bf
..
1fdec68
100644
(file)
--- a/
lib/librte_latencystats/rte_latencystats.c
+++ b/
lib/librte_latencystats/rte_latencystats.c
@@
-1,5
+1,5
@@
/* SPDX-License-Identifier: BSD-3-Clause
/* SPDX-License-Identifier: BSD-3-Clause
- * Copyright(c) 201
7
Intel Corporation
+ * Copyright(c) 201
8
Intel Corporation
*/
#include <unistd.h>
*/
#include <unistd.h>
@@
-265,6
+265,7
@@
rte_latencystats_uninit(void)
uint16_t qid;
int ret = 0;
struct rxtx_cbs *cbs = NULL;
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) {
/** 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;
}
return 0;
}