Change-Id: I45ea9741be1c552d8f13a7de027994c23995df69
Signed-off-by: Xavier Simonart <xavier.simonart@intel.com>
#include "stats_irq.h"
#include "prox_compat.h"
#include "rte_ethdev.h"
+#include "lconf.h"
struct prox_port_cfg prox_port_cfg[PROX_MAX_PORTS];
plog_info("Closing port %u\n", portid);
rte_eth_dev_close(portid);
}
+
+ struct lcore_cfg *lconf = NULL;
+ struct task_args *targ;
+ while (core_targ_next(&lconf, &targ, 0) == 0) {
+ if (targ->pool) {
+ rte_mempool_free(targ->pool);
+ plog_info("freeing pool %p\n", targ->pool);
+ targ->pool = NULL;
+ }
+ }
}
void init_port_addr(void)
stop_core_all(-1);
}
- struct lcore_cfg *lconf = NULL;
- struct task_args *targ;
- while (core_targ_next(&lconf, &targ, 0) == 0) {
- if (targ->pool) {
- rte_mempool_free(targ->pool);
- plog_info("freeing pool %p\n", targ->pool);
- targ->pool = NULL;
- }
- }
if (prox_cfg.logbuf) {
file_print(prox_cfg.logbuf);
}