From d689df23fb4bf38e1abc23b06767fc26aa27c163 Mon Sep 17 00:00:00 2001 From: mattprost Date: Wed, 31 Mar 2021 11:33:33 -0500 Subject: rfnoc: Add option to disable flow control on rx streaming Disabling this feature will allow the USRP to send a continuous stream of Rx data to a host machine without throttling due to lack of flow control credits. This is unnecessary overhead on lossless transports such as pcie or aurora. Usage: add 'enable_fc=false' to stream_args.args Signed-off-by: mattprost --- host/lib/rfnoc/chdr_rx_data_xport.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'host/lib/rfnoc/chdr_rx_data_xport.cpp') diff --git a/host/lib/rfnoc/chdr_rx_data_xport.cpp b/host/lib/rfnoc/chdr_rx_data_xport.cpp index 74b310fa1..7089c9071 100644 --- a/host/lib/rfnoc/chdr_rx_data_xport.cpp +++ b/host/lib/rfnoc/chdr_rx_data_xport.cpp @@ -200,7 +200,9 @@ chdr_rx_data_xport::fc_params_t chdr_rx_data_xport::configure_sep(io_service::sp recv_io->release_recv_buff(std::move(buff)); // Finally, let the management portal know the setup is complete - mgmt_portal.config_local_rx_stream_commit(*ctrl_xport, remote_epid); + const bool fc_enabled = (fc_freq.bytes != 0) || (fc_freq.packets != 0); + mgmt_portal.config_local_rx_stream_commit( + *ctrl_xport, remote_epid, 0.2 /*default timeout*/, fc_enabled); // The flow control frequency requested is contained in the strc UHD_LOG_TRACE("XPORT::RX_DATA_XPORT", -- cgit v1.2.3