aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/rfnoc
diff options
context:
space:
mode:
authormichael-west <michael.west@ettus.com>2019-01-18 18:42:36 -0800
committerBrent Stapleton <brent.stapleton@ettus.com>2019-01-21 16:53:03 -0800
commit86932606e3fe6b7ec89183e7f63252148047ad42 (patch)
treed87946fb0e297e379ea48f4eeb9b863d330f317b /host/lib/rfnoc
parentf25e807f7862b02ede02547424ee11d414279ed9 (diff)
downloaduhd-86932606e3fe6b7ec89183e7f63252148047ad42.tar.gz
uhd-86932606e3fe6b7ec89183e7f63252148047ad42.tar.bz2
uhd-86932606e3fe6b7ec89183e7f63252148047ad42.zip
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 <michael.west@ettus.com>
Diffstat (limited to 'host/lib/rfnoc')
-rw-r--r--host/lib/rfnoc/ctrl_iface.cpp2
1 files changed, 1 insertions, 1 deletions
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));