aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/x300/x300_pcie_mgr.cpp
diff options
context:
space:
mode:
authorAlex Williams <alex.williams@ni.com>2019-12-12 10:29:11 -0800
committerBrent Stapleton <brent.stapleton@ettus.com>2019-12-20 16:32:22 -0800
commit691f191a1ea1a8d655976c9f7b9fdfe7b4b36a41 (patch)
treecfa48579158488852d8a7832da1cda14d7904373 /host/lib/usrp/x300/x300_pcie_mgr.cpp
parentcb400696bf2fbe82eea0f38d04a1771ccf6fd868 (diff)
downloaduhd-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/x300/x300_pcie_mgr.cpp')
-rw-r--r--host/lib/usrp/x300/x300_pcie_mgr.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/host/lib/usrp/x300/x300_pcie_mgr.cpp b/host/lib/usrp/x300/x300_pcie_mgr.cpp
index 41d9407f9..d2aad7e3c 100644
--- a/host/lib/usrp/x300/x300_pcie_mgr.cpp
+++ b/host/lib/usrp/x300/x300_pcie_mgr.cpp
@@ -351,14 +351,13 @@ both_links_t pcie_manager::get_links(link_type_t link_type,
// Note: The nirio_link object's factory has a lot of code for sanity
// checking the link params, and merging the link_args with the default
// link_params, so we use that.
- link_params_t link_params = get_default_link_params(link_type);
+ link_params_t link_params = get_default_link_params(link_type);
// PCIe: Lossless, and little endian
size_t recv_buff_size, send_buff_size;
- auto link = nirio_link::make(_rio_fpga_interface,
- dma_channel_num,
- link_params,
- link_args);
+ auto link =
+ nirio_link::make(_rio_fpga_interface, dma_channel_num, link_params, link_args);
- return std::make_tuple(link, send_buff_size, link, recv_buff_size, false /*not lossy*/);
+ return std::make_tuple(
+ link, send_buff_size, link, recv_buff_size, false /*not lossy*/, false);
}