diff options
author | Martin Braun <martin.braun@ettus.com> | 2019-12-02 23:06:39 -0800 |
---|---|---|
committer | Brent Stapleton <brent.stapleton@ettus.com> | 2019-12-20 16:32:22 -0800 |
commit | 4547f2de85f0d8b258a89cea71af774fce8616b7 (patch) | |
tree | d1239e074c5a35b449638a34aa3a6f74a53adfbb /host/lib/usrp/mpmd/mpmd_find.cpp | |
parent | 4e38eef817813c1bbd8a9cf972e4cf0134d24308 (diff) | |
download | uhd-4547f2de85f0d8b258a89cea71af774fce8616b7.tar.gz uhd-4547f2de85f0d8b258a89cea71af774fce8616b7.tar.bz2 uhd-4547f2de85f0d8b258a89cea71af774fce8616b7.zip |
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
Diffstat (limited to 'host/lib/usrp/mpmd/mpmd_find.cpp')
-rw-r--r-- | host/lib/usrp/mpmd/mpmd_find.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
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 <uhdlib/transport/dpdk_common.hpp> #include <uhd/transport/if_addrs.hpp> #include <uhd/transport/udp_simple.hpp> #include <uhd/types/device_addr.hpp> #include <boost/algorithm/string.hpp> #include <boost/asio.hpp> #include <future> +#ifdef HAVE_DPDK +# include <uhdlib/transport/dpdk/common.hpp> +#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 |