From bbb3aa78836a31e9df847a228c2f87e9e2a15fad Mon Sep 17 00:00:00 2001 From: michael-west Date: Thu, 24 Jan 2019 11:00:46 -0800 Subject: RFNoC: Prevent unnecessary FC ACK packets Avoid sending flow control ACK packets for lossless transports. Add 'send_no_fc_acks' device argument to explicitly prevent flow control ACK packets from being sent. Signed-off-by: michael-west --- host/lib/include/uhdlib/rfnoc/xports.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'host/lib/include/uhdlib/rfnoc') diff --git a/host/lib/include/uhdlib/rfnoc/xports.hpp b/host/lib/include/uhdlib/rfnoc/xports.hpp index 06fd4713b..6b30fe5b1 100644 --- a/host/lib/include/uhdlib/rfnoc/xports.hpp +++ b/host/lib/include/uhdlib/rfnoc/xports.hpp @@ -18,7 +18,8 @@ namespace uhd { */ struct both_xports_t { - both_xports_t(): recv_buff_size(0), send_buff_size(0) {} + both_xports_t(): recv_buff_size(0), send_buff_size(0), lossless(false) + {} uhd::transport::zero_copy_if::sptr recv; uhd::transport::zero_copy_if::sptr send; size_t recv_buff_size; @@ -26,9 +27,9 @@ namespace uhd { uhd::sid_t send_sid; uhd::sid_t recv_sid; uhd::endianness_t endianness; + bool lossless; }; }; #endif /* INCLUDED_LIBUHD_XPORTS_HPP */ - -- cgit v1.2.3