From 3c821adfedf859ffb689136eea2ac6fa6b48916a Mon Sep 17 00:00:00 2001 From: Trung Tran Date: Wed, 16 Jan 2019 13:40:18 -0800 Subject: mpmd_xport: liberio: using 4096 bytes frame size Using a send_frame_size of 8192 locks up some devices while transmitting. The root cause of this is unknown, but the new value (4096) prevents this issue in most cases. Some device are still affected by the lock-up even after this change. --- host/lib/usrp/mpmd/mpmd_xport_ctrl_liberio.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'host/lib/usrp') diff --git a/host/lib/usrp/mpmd/mpmd_xport_ctrl_liberio.cpp b/host/lib/usrp/mpmd/mpmd_xport_ctrl_liberio.cpp index d2f36bba3..139683597 100644 --- a/host/lib/usrp/mpmd/mpmd_xport_ctrl_liberio.cpp +++ b/host/lib/usrp/mpmd/mpmd_xport_ctrl_liberio.cpp @@ -128,9 +128,13 @@ bool mpmd_xport_ctrl_liberio::is_valid( return xport_info.at("type") == "liberio"; } -size_t mpmd_xport_ctrl_liberio::get_mtu(const uhd::direction_t /* dir */ - ) const +size_t mpmd_xport_ctrl_liberio::get_mtu(const uhd::direction_t dir) const { + /* TODO: this is extremely hacky. We don't know yet what broke liberio. + * Putting a bandaid here to help TXing. Remove this as soon as possible! + */ + if (dir == uhd::TX_DIRECTION) + return getpagesize(); return LIBERIO_PAGES_PER_BUF * getpagesize(); } -- cgit v1.2.3