From 18bc320dc3348346255ab0d33aa319fb2618d7b3 Mon Sep 17 00:00:00 2001 From: Michael West Date: Fri, 13 Sep 2019 03:34:44 -0700 Subject: Device3: Restore default buffer sizes for MPMD UDP The latest change to fix MTU and default frame sizes inadvertantly removed the default send and recv buffer sizes in the MPMD UDP transport, which caused receive timeouts and underruns at higher sample rates. This change restores those values. Signed-off-by: Michael West --- host/lib/usrp/mpmd/mpmd_xport_ctrl_udp.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'host/lib/usrp/mpmd') diff --git a/host/lib/usrp/mpmd/mpmd_xport_ctrl_udp.cpp b/host/lib/usrp/mpmd/mpmd_xport_ctrl_udp.cpp index ba827fcf4..20b94899c 100644 --- a/host/lib/usrp/mpmd/mpmd_xport_ctrl_udp.cpp +++ b/host/lib/usrp/mpmd/mpmd_xport_ctrl_udp.cpp @@ -198,6 +198,8 @@ uhd::both_xports_t mpmd_xport_ctrl_udp::make_transport( default_buff_args.num_recv_frames = MPMD_UDP_DEFAULT_NUM_RECV_FRAMES; default_buff_args.recv_frame_size = MPMD_UDP_MSG_FRAME_SIZE; default_buff_args.send_frame_size = MPMD_UDP_MSG_FRAME_SIZE; + default_buff_args.recv_buff_size = link_speed * MPMD_BUFFER_DEPTH; + default_buff_args.send_buff_size = link_speed * MPMD_BUFFER_DEPTH; if (xport_type == usrp::device3_impl::CTRL) { default_buff_args.num_recv_frames = uhd::rfnoc::CMD_FIFO_SIZE / uhd::rfnoc::MAX_CMD_PKT_SIZE; -- cgit v1.2.3