mpmd: support four links

This commit is contained in:
Andrew Lynch 2021-06-04 13:17:38 -05:00 committed by Aaron Rossetto
parent ca21048bd2
commit 4f64b54e21
2 changed files with 10 additions and 0 deletions

View File

@ -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()) {

View File

@ -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
*