aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/x300
diff options
context:
space:
mode:
authorMatthew Crymble <matthew.crymble@ni.com>2019-05-24 13:43:28 -0500
committerMartin Braun <martin.braun@ettus.com>2019-05-25 14:55:45 -0700
commit4eca9b9365063b867372f8a8dce7b1b3933e17a0 (patch)
tree16a6112c576800533f73899777ed73ee0419f42c /host/lib/usrp/x300
parentf83faf28b3424ba60c3bdc40d408011c9c619c8a (diff)
downloaduhd-4eca9b9365063b867372f8a8dce7b1b3933e17a0.tar.gz
uhd-4eca9b9365063b867372f8a8dce7b1b3933e17a0.tar.bz2
uhd-4eca9b9365063b867372f8a8dce7b1b3933e17a0.zip
X300: fixed get_mtu for pcie
Signed-off-by: Matthew Crymble <matthew.crymble@ni.com>
Diffstat (limited to 'host/lib/usrp/x300')
-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;
}