From 4547f2de85f0d8b258a89cea71af774fce8616b7 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Mon, 2 Dec 2019 23:06:39 -0800 Subject: x300,mpmd: Enable DPDK x300: - Remove obsolete variables from x300_eth_mgr and X300 motherboard components - Added some documentation / comments - Use constrained device args in more places - Enables the use of use_dpdk=1 - Switches between regular (kernel-based) and DPDK UDP mpmd: - Merge link_if_ctrl for udp and dpdk_udp - Update cmake options --- host/lib/usrp/mpmd/mpmd_find.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'host/lib/usrp/mpmd/mpmd_find.cpp') diff --git a/host/lib/usrp/mpmd/mpmd_find.cpp b/host/lib/usrp/mpmd/mpmd_find.cpp index 3e8bcc72f..b5f20559c 100644 --- a/host/lib/usrp/mpmd/mpmd_find.cpp +++ b/host/lib/usrp/mpmd/mpmd_find.cpp @@ -9,13 +9,15 @@ #include "mpmd_devices.hpp" #include "mpmd_impl.hpp" #include "mpmd_link_if_mgr.hpp" -#include #include #include #include #include #include #include +#ifdef HAVE_DPDK +# include +#endif using namespace uhd; using namespace uhd::mpmd; @@ -198,9 +200,9 @@ device_addrs_t mpmd_find(const device_addr_t& hint_) #ifdef HAVE_DPDK // Start DPDK so links come up if (hint_.has_key("use_dpdk")) { - auto& dpdk_ctx = uhd::transport::uhd_dpdk_ctx::get(); - if (not dpdk_ctx.is_init_done()) { - dpdk_ctx.init(hint_); + auto dpdk_ctx = uhd::transport::dpdk::dpdk_ctx::get(); + if (not dpdk_ctx->is_init_done()) { + dpdk_ctx->init(hint_); } } #endif -- cgit v1.2.3