From 66bfc90c275de0e96c0cd51f84a52fb93e2ef201 Mon Sep 17 00:00:00 2001 From: Trung Tran Date: Wed, 16 Jan 2019 12:26:43 -0800 Subject: mpmd: implement get_*x_hints Fix transport related arguments passed down the stack. --- host/lib/usrp/mpmd/mpmd_mboard_impl.cpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'host/lib/usrp/mpmd/mpmd_mboard_impl.cpp') 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; } /***************************************************************************** -- cgit v1.2.3