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/transport/muxed_zero_copy_if.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'host/lib/transport') diff --git a/host/lib/transport/muxed_zero_copy_if.cpp b/host/lib/transport/muxed_zero_copy_if.cpp index feaa43b70..a3ea4c40d 100644 --- a/host/lib/transport/muxed_zero_copy_if.cpp +++ b/host/lib/transport/muxed_zero_copy_if.cpp @@ -70,8 +70,8 @@ public: stream_impl::sptr stream = boost::make_shared(this->shared_from_this(), stream_num, - _base_xport->get_num_send_frames() / _max_num_streams, - _base_xport->get_num_recv_frames() / _max_num_streams); + _base_xport->get_num_send_frames(), + _base_xport->get_num_recv_frames()); _streams[stream_num] = stream; return stream; } -- cgit v1.2.3