Free up the memzone allocated during the
rte_latencystats_init().
Fixes:
5cd3cac9ed ("latency: added new library for latency stats")
CC: stable@dpdk.org
Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
Acked-by: Remy Horton <remy.horton@intel.com>
/* SPDX-License-Identifier: BSD-3-Clause
- * Copyright(c) 2017 Intel Corporation
+ * Copyright(c) 2018 Intel Corporation
*/
#include <unistd.h>
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) {
}
}
+ /* free up the memzone */
+ mz = rte_memzone_lookup(MZ_RTE_LATENCY_STATS);
+ if (mz)
+ rte_memzone_free(mz);
+
return 0;
}