From 86932606e3fe6b7ec89183e7f63252148047ad42 Mon Sep 17 00:00:00 2001 From: michael-west Date: Fri, 18 Jan 2019 18:42:36 -0800 Subject: transport: muxed_zero_copy_if fixes Changed muxed_zero_copy_if to make each stream buffer the same number of frames as the underlying transport and changed the size of the underlying control transport for X300 and MPMD devices to match the size of the command FIFO in order to prevent starvation of any single control transport. Added some constants to remove hard coded values. Signed-off-by: michael-west --- host/lib/rfnoc/ctrl_iface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/lib/rfnoc/ctrl_iface.cpp') diff --git a/host/lib/rfnoc/ctrl_iface.cpp b/host/lib/rfnoc/ctrl_iface.cpp index 6204d81f4..e0fc03eab 100644 --- a/host/lib/rfnoc/ctrl_iface.cpp +++ b/host/lib/rfnoc/ctrl_iface.cpp @@ -36,7 +36,7 @@ public: , _name(name) , _seq_out(0) , _max_outstanding_acks( - uhd::rfnoc::CMD_FIFO_SIZE / 3) // Max command packet size is 3 lines + uhd::rfnoc::CMD_FIFO_SIZE / uhd::rfnoc::MAX_CMD_PKT_SIZE) { UHD_ASSERT_THROW(bool(_xports.send)); UHD_ASSERT_THROW(bool(_xports.recv)); -- cgit v1.2.3