aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2016-10-25 15:09:06 -0700
committerMartin Braun <martin.braun@ettus.com>2016-10-25 16:55:54 -0700
commitabee6b1929390e4824964f9fc2b3ed538dc3c679 (patch)
tree7d7a1748f4168da0e1254b115f6d56c7bbbc0552 /host/lib
parent2a0e0612dcc9a477e690addae3fd8b42ed301f26 (diff)
downloaduhd-abee6b1929390e4824964f9fc2b3ed538dc3c679.tar.gz
uhd-abee6b1929390e4824964f9fc2b3ed538dc3c679.tar.bz2
uhd-abee6b1929390e4824964f9fc2b3ed538dc3c679.zip
x300: Throttle MTU to 3000 for PCIe to avoid underruns
This is a temporary workaround to make PCIe available on lower rates.
Diffstat (limited to 'host/lib')
-rw-r--r--host/lib/usrp/x300/x300_impl.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/host/lib/usrp/x300/x300_impl.hpp b/host/lib/usrp/x300/x300_impl.hpp
index ee42dcf3e..5d3fa4fed 100644
--- a/host/lib/usrp/x300/x300_impl.hpp
+++ b/host/lib/usrp/x300/x300_impl.hpp
@@ -54,7 +54,10 @@ static const size_t X300_RX_SW_BUFF_SIZE_ETH_MACOS = 0x100000; //1Mib
//where an element is 8 bytes. For best throughput ensure that the data frame fits in these buffers.
//Also ensure that the kernel has enough frames to hold buffered TX and RX data
static const size_t X300_PCIE_RX_DATA_FRAME_SIZE = 8184; //bytes
-static const size_t X300_PCIE_TX_DATA_FRAME_SIZE = 8192; //bytes
+//static const size_t X300_PCIE_TX_DATA_FRAME_SIZE = 8192; //bytes
+// This is a temporary solution: We're throttling PCIe MTU to avoid
+// underruns on Tx. Once we solve it on the FPGA side, need revert this commit.
+static const size_t X300_PCIE_TX_DATA_FRAME_SIZE = 3000; //bytes
static const size_t X300_PCIE_DATA_NUM_FRAMES = 2048;
static const size_t X300_PCIE_MSG_FRAME_SIZE = 256; //bytes
static const size_t X300_PCIE_MSG_NUM_FRAMES = 64;