aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2017-12-22 14:32:14 -0800
committerMartin Braun <martin.braun@ettus.com>2017-12-22 15:06:11 -0800
commitd962372edb81e4a5331d82cd6ced4e8d4553d754 (patch)
treeb01fac981c2a4dd05a8ac355869079c5342b4fa1 /host/lib/usrp
parentc8cdbfc4d4e307017e02dd48c449d3e3f38118af (diff)
downloaduhd-d962372edb81e4a5331d82cd6ced4e8d4553d754.tar.gz
uhd-d962372edb81e4a5331d82cd6ced4e8d4553d754.tar.bz2
uhd-d962372edb81e4a5331d82cd6ced4e8d4553d754.zip
mpmd: liberio: Apply MTU of 2 page sizes
Diffstat (limited to 'host/lib/usrp')
-rw-r--r--host/lib/usrp/mpmd/mpmd_xport_ctrl_liberio.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/host/lib/usrp/mpmd/mpmd_xport_ctrl_liberio.cpp b/host/lib/usrp/mpmd/mpmd_xport_ctrl_liberio.cpp
index 30fb27e04..2780f15da 100644
--- a/host/lib/usrp/mpmd/mpmd_xport_ctrl_liberio.cpp
+++ b/host/lib/usrp/mpmd/mpmd_xport_ctrl_liberio.cpp
@@ -39,8 +39,9 @@ mpmd_xport_ctrl_liberio::make_transport(
) {
transport::zero_copy_xport_params default_buff_args;
/* default ones for RX / TX, override below */
- default_buff_args.send_frame_size = 4 * getpagesize();
- default_buff_args.recv_frame_size = 4 * getpagesize();
+
+ default_buff_args.send_frame_size = get_mtu(uhd::TX_DIRECTION);
+ default_buff_args.recv_frame_size = get_mtu(uhd::RX_DIRECTION);
default_buff_args.num_recv_frames = 128;
default_buff_args.num_send_frames = 128;
@@ -132,7 +133,7 @@ bool mpmd_xport_ctrl_liberio::is_valid(
size_t mpmd_xport_ctrl_liberio::get_mtu(
const uhd::direction_t /* dir */
) const {
- return 8000;
+ return 2 * getpagesize();
}
uhd::transport::muxed_zero_copy_if::sptr