aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib
diff options
context:
space:
mode:
authorTrung Tran <trung.tran@ettus.com>2018-08-21 15:28:29 -0700
committerBrent Stapleton <bstapleton@g.hmc.edu>2018-09-13 14:47:54 -0700
commit79f3237fb59d77a7a83e0d07ef3682c760477340 (patch)
treec6b60599d3de03387c0ed2daa095632fb60eb658 /host/lib
parent27abe82f0de6ae81aadf8a8c6a8206d9ca38bfc5 (diff)
downloaduhd-79f3237fb59d77a7a83e0d07ef3682c760477340.tar.gz
uhd-79f3237fb59d77a7a83e0d07ef3682c760477340.tar.bz2
uhd-79f3237fb59d77a7a83e0d07ef3682c760477340.zip
x300_impl: remove default_buff_args properties
...that are already handled in udp_zero_copy.
Diffstat (limited to 'host/lib')
-rw-r--r--host/lib/usrp/x300/x300_impl.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/host/lib/usrp/x300/x300_impl.cpp b/host/lib/usrp/x300/x300_impl.cpp
index ad8bb91cf..cc4f94065 100644
--- a/host/lib/usrp/x300/x300_impl.cpp
+++ b/host/lib/usrp/x300/x300_impl.cpp
@@ -1302,8 +1302,6 @@ uhd::both_xports_t x300_impl::make_transport(
size_t system_max_recv_frame_size = (size_t) _max_frame_sizes.recv_frame_size;
default_buff_args.send_frame_size = std::min(system_max_send_frame_size, x300::ETH_MSG_FRAME_SIZE);
default_buff_args.recv_frame_size = std::min(system_max_recv_frame_size, x300::ETH_MSG_FRAME_SIZE);
- default_buff_args.num_send_frames = 1; // never need multiple frames on send
- default_buff_args.num_recv_frames = 1; // only need multiple frames with offload thread
default_buff_args.send_buff_size = conn.link_rate / 50; // 20ms
default_buff_args.recv_buff_size = std::max(conn.link_rate / 50, x300::ETH_MSG_NUM_FRAMES * x300::ETH_MSG_FRAME_SIZE); // enough to hold greater of 20ms or number of msg frames
if (xport_type == TX_DATA)
@@ -1335,12 +1333,7 @@ uhd::both_xports_t x300_impl::make_transport(
;
default_buff_args.recv_frame_size = system_max_recv_frame_size;
}
- // set default buffering for data
- default_buff_args.recv_buff_size = conn.link_rate / 10; // 100ms
default_buff_args.num_recv_frames = 2; // set some buffers so the offload thread actually offloads the socket I/O
-
- // set buffering for flow control messages
- default_buff_args.num_send_frames = 1;
}
//make a new transport - fpga has no idea how to talk to us on this yet