diff options
author | Trung Tran <trung.tran@ettus.com> | 2019-01-16 12:26:43 -0800 |
---|---|---|
committer | Brent Stapleton <brent.stapleton@ettus.com> | 2019-01-21 14:44:02 -0800 |
commit | 66bfc90c275de0e96c0cd51f84a52fb93e2ef201 (patch) | |
tree | 87704c9a9089e3c673888a92190ffd577d22239a | |
parent | b459e02eedf358ef564020d698a9d96b711bf14e (diff) | |
download | uhd-66bfc90c275de0e96c0cd51f84a52fb93e2ef201.tar.gz uhd-66bfc90c275de0e96c0cd51f84a52fb93e2ef201.tar.bz2 uhd-66bfc90c275de0e96c0cd51f84a52fb93e2ef201.zip |
mpmd: implement get_*x_hints
Fix transport related arguments passed down the stack.
-rw-r--r-- | host/lib/usrp/mpmd/mpmd_impl.hpp | 2 | ||||
-rw-r--r-- | host/lib/usrp/mpmd/mpmd_mboard_impl.cpp | 15 |
2 files changed, 11 insertions, 6 deletions
diff --git a/host/lib/usrp/mpmd/mpmd_impl.hpp b/host/lib/usrp/mpmd/mpmd_impl.hpp index f3328dc6f..cf0dad484 100644 --- a/host/lib/usrp/mpmd/mpmd_impl.hpp +++ b/host/lib/usrp/mpmd/mpmd_impl.hpp @@ -169,6 +169,8 @@ private: uhd::task::sptr _claimer_task; uhd::mpmd::xport::mpmd_xport_mgr::uptr _xport_mgr; + uhd::device_addr_t send_args; + uhd::device_addr_t recv_args; }; diff --git a/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp b/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp index 261b6f2aa..11404ffaf 100644 --- a/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp +++ b/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp @@ -290,6 +290,13 @@ mpmd_mboard_impl::mpmd_mboard_impl( << this_db_info.to_string(); this->dboard_info.push_back(this_db_info); } + + for (const std::string& key : mb_args_.keys()) { + if (key.find("recv") != std::string::npos) + recv_args[key] = mb_args_[key]; + if (key.find("send") != std::string::npos) + send_args[key] = mb_args_[key]; + } } mpmd_mboard_impl::~mpmd_mboard_impl() @@ -377,16 +384,12 @@ size_t mpmd_mboard_impl::get_mtu(const uhd::direction_t dir) const uhd::device_addr_t mpmd_mboard_impl::get_rx_hints() const { - // TODO: See if we need to do anything here. get_rx_stream() might care. - device_addr_t rx_hints; - return rx_hints; + return recv_args; } uhd::device_addr_t mpmd_mboard_impl::get_tx_hints() const { - // TODO: See if we need to do anything here. get_tx_stream() might care. - device_addr_t tx_hints; - return tx_hints; + return send_args; } /***************************************************************************** |