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/include/uhdlib/rfnoc/mgmt_portal.hpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'host/lib/include/uhdlib/rfnoc/mgmt_portal.hpp') diff --git a/host/lib/include/uhdlib/rfnoc/mgmt_portal.hpp b/host/lib/include/uhdlib/rfnoc/mgmt_portal.hpp index afe438140..0e3e887f3 100644 --- a/host/lib/include/uhdlib/rfnoc/mgmt_portal.hpp +++ b/host/lib/include/uhdlib/rfnoc/mgmt_portal.hpp @@ -148,9 +148,13 @@ public: // // \param xport The host stream endpoint's CTRL transport (same EPID as RX stream) // \param epid The endpoint ID of the data source + // \param timeout The max time to wait on stream validation + // \param fc_enabled Enable flow control in the FPGA // - virtual stream_buff_params_t config_local_rx_stream_commit( - chdr_ctrl_xport& xport, const sep_id_t& epid, const double timeout = 0.2) = 0; + virtual stream_buff_params_t config_local_rx_stream_commit(chdr_ctrl_xport& xport, + const sep_id_t& epid, + const double timeout = 0.2, + const bool fc_enabled = true) = 0; //! Configure a flow controlled transmit data stream from this SW mgmt portal to the // endpoint with the specified ID. @@ -177,6 +181,8 @@ public: // \param mdata_buff_fmt Datatype of SW buffer that holds the data metadata // \param fc_freq Flow control response frequency parameters // \param fc_freq Flow control headroom parameters + // \param reset Reset source and destination stream endpoint states + // \param timeout The max time to wait on stream validation // virtual stream_buff_params_t config_remote_stream(chdr_ctrl_xport& xport, const sep_id_t& dst_epid, -- cgit v1.2.3