diff options
author | michael-west <michael.west@ettus.com> | 2019-01-24 11:00:46 -0800 |
---|---|---|
committer | Ashish Chaudhari <ashish.chaudhari@ettus.com> | 2019-01-31 13:47:03 -0800 |
commit | bbb3aa78836a31e9df847a228c2f87e9e2a15fad (patch) | |
tree | e0a8828719a92c4595c391bd48edcca2f220ab64 /host/lib/usrp/mpmd | |
parent | 1223294e532b9452aef0942feb44389369317c6e (diff) | |
download | uhd-bbb3aa78836a31e9df847a228c2f87e9e2a15fad.tar.gz uhd-bbb3aa78836a31e9df847a228c2f87e9e2a15fad.tar.bz2 uhd-bbb3aa78836a31e9df847a228c2f87e9e2a15fad.zip |
RFNoC: Prevent unnecessary FC ACK packets
Avoid sending flow control ACK packets for lossless transports.
Add 'send_no_fc_acks' device argument to explicitly prevent
flow control ACK packets from being sent.
Signed-off-by: michael-west <michael.west@ettus.com>
Diffstat (limited to 'host/lib/usrp/mpmd')
-rw-r--r-- | host/lib/usrp/mpmd/mpmd_xport_ctrl_liberio.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/host/lib/usrp/mpmd/mpmd_xport_ctrl_liberio.cpp b/host/lib/usrp/mpmd/mpmd_xport_ctrl_liberio.cpp index 139683597..8f3014bc7 100644 --- a/host/lib/usrp/mpmd/mpmd_xport_ctrl_liberio.cpp +++ b/host/lib/usrp/mpmd/mpmd_xport_ctrl_liberio.cpp @@ -79,13 +79,11 @@ uhd::both_xports_t mpmd_xport_ctrl_liberio::make_transport( const std::string rx_dev = xport_info["rx_dev"]; both_xports_t xports; + xports.lossless = true; xports.endianness = uhd::ENDIANNESS_LITTLE; xports.send_sid = sid_t(xport_info["send_sid"]); xports.recv_sid = xports.send_sid.reversed(); - // if (xport_info["muxed"] == "True") { - //// FIXME tbw - //} if (xport_type == usrp::device3_impl::CTRL) { UHD_ASSERT_THROW(xport_info["muxed"] == "True"); if (not _ctrl_dma_xport) { @@ -130,11 +128,6 @@ bool mpmd_xport_ctrl_liberio::is_valid( 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(); } |