diff options
-rw-r--r-- | host/lib/transport/uhd-dpdk/dpdk_common.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/host/lib/transport/uhd-dpdk/dpdk_common.cpp b/host/lib/transport/uhd-dpdk/dpdk_common.cpp index 46818e973..1ce9279ae 100644 --- a/host/lib/transport/uhd-dpdk/dpdk_common.cpp +++ b/host/lib/transport/uhd-dpdk/dpdk_common.cpp @@ -307,10 +307,10 @@ dpdk_ctx::~dpdk_ctx(void) { std::lock_guard<std::mutex> lock(global_ctx_mutex); global_ctx = nullptr; - // Stop all the ports - for (auto& port : _ports) { - rte_eth_dev_stop(port.first); - } + // Destroy the io service + _io_srv_portid_map.clear(); + // Destroy and stop all the ports + _ports.clear(); // Free mempools for (auto& pool : _rx_pktbuf_pools) { rte_mempool_free(pool); |