From 4f64b54e218232bc190b2aa091698781e5d1d12c Mon Sep 17 00:00:00 2001 From: Andrew Lynch Date: Fri, 4 Jun 2021 13:17:38 -0500 Subject: mpmd: support four links --- host/lib/usrp/mpmd/mpmd_link_if_ctrl_udp.cpp | 6 ++++++ host/lib/usrp/mpmd/mpmd_link_if_mgr.hpp | 4 ++++ 2 files changed, 10 insertions(+) (limited to 'host/lib') 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 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 * -- cgit v1.2.3