diff options
author | Andrew Lynch <andrew.lynch@ni.com> | 2021-06-04 13:17:38 -0500 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2021-06-08 15:49:57 -0500 |
commit | 4f64b54e218232bc190b2aa091698781e5d1d12c (patch) | |
tree | 6bb2d36bcf833914b2f94c24f71807ba8243d02c /host/lib | |
parent | ca21048bd2f832b20bb36763f76d46b861b697a5 (diff) | |
download | uhd-4f64b54e218232bc190b2aa091698781e5d1d12c.tar.gz uhd-4f64b54e218232bc190b2aa091698781e5d1d12c.tar.bz2 uhd-4f64b54e218232bc190b2aa091698781e5d1d12c.zip |
mpmd: support four links
Diffstat (limited to 'host/lib')
-rw-r--r-- | host/lib/usrp/mpmd/mpmd_link_if_ctrl_udp.cpp | 6 | ||||
-rw-r--r-- | host/lib/usrp/mpmd/mpmd_link_if_mgr.hpp | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/host/lib/usrp/mpmd/mpmd_link_if_ctrl_udp.cpp b/host/lib/usrp/mpmd/mpmd_link_if_ctrl_udp.cpp index 6fc36bf72..89f713f1e 100644 --- a/host/lib/usrp/mpmd/mpmd_link_if_ctrl_udp.cpp +++ b/host/lib/usrp/mpmd/mpmd_link_if_ctrl_udp.cpp @@ -94,6 +94,12 @@ std::vector<std::string> get_addrs_from_mb_args(const uhd::device_addr_t& mb_arg if (mb_args.has_key(SECOND_ADDR_KEY)) { addrs.push_back(mb_args[SECOND_ADDR_KEY]); } + if (mb_args.has_key(THIRD_ADDR_KEY)) { + addrs.push_back(mb_args[THIRD_ADDR_KEY]); + } + if (mb_args.has_key(FOURTH_ADDR_KEY)) { + addrs.push_back(mb_args[FOURTH_ADDR_KEY]); + } } if(addrs.empty()) { if (!link_info_list.empty()) { diff --git a/host/lib/usrp/mpmd/mpmd_link_if_mgr.hpp b/host/lib/usrp/mpmd/mpmd_link_if_mgr.hpp index eac73e416..32f2b50a6 100644 --- a/host/lib/usrp/mpmd/mpmd_link_if_mgr.hpp +++ b/host/lib/usrp/mpmd/mpmd_link_if_mgr.hpp @@ -28,6 +28,10 @@ namespace uhd { namespace mpmd { namespace xport { const std::string FIRST_ADDR_KEY = "addr"; //! Secondary Ethernet address for streaming and RFNoC communication const std::string SECOND_ADDR_KEY = "second_addr"; +//! Tertiary Ethernet address for streaming and RFNoC communication +const std::string THIRD_ADDR_KEY = "third_addr"; +//! Quaternary Ethernet address for streaming and RFNoC communication +const std::string FOURTH_ADDR_KEY = "fourth_addr"; /*! Return filtered subset from a device_addr_t * |