diff options
author | Alex Williams <alex.williams@ni.com> | 2019-12-12 10:29:11 -0800 |
---|---|---|
committer | Brent Stapleton <brent.stapleton@ettus.com> | 2019-12-20 16:32:22 -0800 |
commit | 691f191a1ea1a8d655976c9f7b9fdfe7b4b36a41 (patch) | |
tree | cfa48579158488852d8a7832da1cda14d7904373 /host/lib/usrp/mpmd/mpmd_link_if_ctrl_liberio.cpp | |
parent | cb400696bf2fbe82eea0f38d04a1771ccf6fd868 (diff) | |
download | uhd-691f191a1ea1a8d655976c9f7b9fdfe7b4b36a41.tar.gz uhd-691f191a1ea1a8d655976c9f7b9fdfe7b4b36a41.tar.bz2 uhd-691f191a1ea1a8d655976c9f7b9fdfe7b4b36a41.zip |
transport,usrp: Make available packet-based flow control
DPDK provides a fixed number of fixed-size buffers for the receive
window, so it needs packet-based flow control to avoid dropping
packets. This change enables counting by packets.
Co-authored-by: Ciro Nishiguchi <ciro.nishiguchi@ni.com>
Diffstat (limited to 'host/lib/usrp/mpmd/mpmd_link_if_ctrl_liberio.cpp')
-rw-r--r-- | host/lib/usrp/mpmd/mpmd_link_if_ctrl_liberio.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/usrp/mpmd/mpmd_link_if_ctrl_liberio.cpp b/host/lib/usrp/mpmd/mpmd_link_if_ctrl_liberio.cpp index 00880738c..bf383f44d 100644 --- a/host/lib/usrp/mpmd/mpmd_link_if_ctrl_liberio.cpp +++ b/host/lib/usrp/mpmd/mpmd_link_if_ctrl_liberio.cpp @@ -116,8 +116,8 @@ uhd::transport::both_links_t mpmd_link_if_ctrl_liberio::get_link(const size_t li link_info.first, link_info.second, link_params); io_srv->attach_send_link(link); io_srv->attach_recv_link(link); - return std::tuple<send_link_if::sptr, size_t, recv_link_if::sptr, size_t, bool>( - link, link_params.send_buff_size, link, link_params.recv_buff_size, false); + return std::make_tuple( + link, link_params.send_buff_size, link, link_params.recv_buff_size, false, true); } size_t mpmd_link_if_ctrl_liberio::get_mtu(const uhd::direction_t /*dir*/) const |