Fix (harmless) memory leaks when DPDK is enabled

This commit is contained in:
Nardi Ivan
2020-06-28 12:05:12 +02:00
parent 2cdf7ce806
commit ece5d3e199
3 changed files with 10 additions and 0 deletions
+5
View File
@@ -2032,4 +2032,9 @@ int dpdk_port_init(int port, struct rte_mempool *mbuf_pool) {
return 0;
}
int dpdk_port_deinit(int port) {
rte_eth_dev_stop(port);
rte_eth_dev_close(port);
}
#endif