From 691f191a1ea1a8d655976c9f7b9fdfe7b4b36a41 Mon Sep 17 00:00:00 2001 From: Alex Williams Date: Thu, 12 Dec 2019 10:29:11 -0800 Subject: 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 --- host/lib/usrp/x300/x300_pcie_mgr.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'host/lib/usrp/x300/x300_pcie_mgr.cpp') 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); } -- cgit v1.2.3