aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorMatthew Crymble <matthew.crymble@ni.com>2019-05-24 13:43:28 -0500
committermichael-west <michael.west@ettus.com>2019-05-24 12:02:21 -0700
commit9f76d1fc6a7f5f5caf8b2728a6423ccf3da4b125 (patch)
tree1a762b5470b35f6c1640e19f7d66a4cbcd17472f /host
parent75c6f34b0f891476dc317cb37ee79c7ee65a0ca5 (diff)
downloaduhd-9f76d1fc6a7f5f5caf8b2728a6423ccf3da4b125.tar.gz
uhd-9f76d1fc6a7f5f5caf8b2728a6423ccf3da4b125.tar.bz2
uhd-9f76d1fc6a7f5f5caf8b2728a6423ccf3da4b125.zip
X300: fixed get_mtu for pcie
Signed-off-by: Matthew Crymble <matthew.crymble@ni.com>
Diffstat (limited to 'host')
-rw-r--r--host/lib/usrp/x300/x300_impl.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/host/lib/usrp/x300/x300_impl.cpp b/host/lib/usrp/x300/x300_impl.cpp
index b9b4a06f9..f6eda34ff 100644
--- a/host/lib/usrp/x300/x300_impl.cpp
+++ b/host/lib/usrp/x300/x300_impl.cpp
@@ -1993,7 +1993,10 @@ x300_impl::frame_size_t x300_impl::determine_max_frame_size(
return frame_size;
}
-size_t x300_impl::get_mtu(const size_t /*mb_index*/, const uhd::direction_t dir) {
+size_t x300_impl::get_mtu(const size_t mb_index, const uhd::direction_t dir) {
+ if (_mb[mb_index].xport_path == "nirio") {
+ return (dir == RX_DIRECTION ? x300::PCIE_RX_DATA_FRAME_SIZE : x300::PCIE_TX_DATA_FRAME_SIZE);
+ }
return (dir == RX_DIRECTION) ? _max_frame_sizes.recv_frame_size :
_max_frame_sizes.send_frame_size;
}