aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib
diff options
context:
space:
mode:
authorMichael West <michael.west@ettus.com>2019-09-13 03:34:44 -0700
committerMartin Braun <martin.braun@ettus.com>2019-09-13 13:27:21 -0700
commit18bc320dc3348346255ab0d33aa319fb2618d7b3 (patch)
tree2041ca31f72f737f8daa3ab9a0c2b6d8a593433b /host/lib
parent7ad9c7330ec73e763f2c6c1cc39cb41388cfd65f (diff)
downloaduhd-18bc320dc3348346255ab0d33aa319fb2618d7b3.tar.gz
uhd-18bc320dc3348346255ab0d33aa319fb2618d7b3.tar.bz2
uhd-18bc320dc3348346255ab0d33aa319fb2618d7b3.zip
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 <michael.west@ettus.com>
Diffstat (limited to 'host/lib')
-rw-r--r--host/lib/usrp/mpmd/mpmd_xport_ctrl_udp.cpp2
1 files changed, 2 insertions, 0 deletions
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;