aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/mpmd/mpmd_link_if_ctrl_udp.cpp
diff options
context:
space:
mode:
authorAndrew Lynch <andrew.lynch@ni.com>2020-06-10 17:15:46 -0500
committerAaron Rossetto <aaron.rossetto@ni.com>2020-06-26 14:34:13 -0500
commit5c1771cc68edca442d870611ef8d9662b5d00d8b (patch)
tree33c4c2dbf82259a4bc6ce4bd11f40e2384260d32 /host/lib/usrp/mpmd/mpmd_link_if_ctrl_udp.cpp
parent9318323b769200ee328456b0ef92ea19c1b96b6e (diff)
downloaduhd-5c1771cc68edca442d870611ef8d9662b5d00d8b.tar.gz
uhd-5c1771cc68edca442d870611ef8d9662b5d00d8b.tar.bz2
uhd-5c1771cc68edca442d870611ef8d9662b5d00d8b.zip
CHDR: support multiple CHDR widths
Support management payloads on busses over 64 bits Automatically set CHDR width for mpmd_link_if_ctrl_udp
Diffstat (limited to 'host/lib/usrp/mpmd/mpmd_link_if_ctrl_udp.cpp')
-rw-r--r--host/lib/usrp/mpmd/mpmd_link_if_ctrl_udp.cpp7
1 files changed, 3 insertions, 4 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 b4a0dfd32..bdf088025 100644
--- a/host/lib/usrp/mpmd/mpmd_link_if_ctrl_udp.cpp
+++ b/host/lib/usrp/mpmd/mpmd_link_if_ctrl_udp.cpp
@@ -26,9 +26,6 @@ using namespace uhd;
using namespace uhd::transport;
using namespace uhd::mpmd::xport;
-const uhd::rfnoc::chdr::chdr_packet_factory mpmd_link_if_ctrl_udp::_pkt_factory(
- uhd::rfnoc::CHDR_W_64, ENDIANNESS_LITTLE);
-
namespace {
//! Maximum CHDR packet size in bytes
@@ -214,10 +211,12 @@ size_t discover_mtu(const std::string& address,
* Structors
*****************************************************************************/
mpmd_link_if_ctrl_udp::mpmd_link_if_ctrl_udp(const uhd::device_addr_t& mb_args,
- const mpmd_link_if_mgr::xport_info_list_t& xport_info)
+ const mpmd_link_if_mgr::xport_info_list_t& xport_info,
+ const uhd::rfnoc::chdr_w_t chdr_w)
: _mb_args(mb_args)
, _udp_info(get_udp_info_from_xport_info(xport_info))
, _mtu(MPMD_10GE_DATA_FRAME_MAX_SIZE)
+ , _pkt_factory(chdr_w, ENDIANNESS_LITTLE)
{
const bool use_dpdk =
mb_args.has_key("use_dpdk"); // FIXME use constrained_device_args