diff options
author | michael-west <michael.west@ettus.com> | 2020-08-06 10:36:56 -0700 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2020-08-07 08:47:48 -0500 |
commit | 7b3bf4bdc00f9c6f56edc1823fade0408aec290f (patch) | |
tree | 92370992f2e0fb83c9490041db8c339b3b16dd31 /host/lib/usrp | |
parent | 821269168806737f4d7b850debd639be0650eb08 (diff) | |
download | uhd-7b3bf4bdc00f9c6f56edc1823fade0408aec290f.tar.gz uhd-7b3bf4bdc00f9c6f56edc1823fade0408aec290f.tar.bz2 uhd-7b3bf4bdc00f9c6f56edc1823fade0408aec290f.zip |
X300: Update frame sizes for 10GbE
Setting default frame sizes for 10 GbE to match an Ethernet MTU of
9000, which is recommended in the UHD manual for the X300. The MTU
detection code is left untouched, so it will automatically adjust
if the MTU is lower than 9000.
Signed-off-by: michael-west <michael.west@ettus.com>
Diffstat (limited to 'host/lib/usrp')
-rw-r--r-- | host/lib/usrp/x300/x300_eth_mgr.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/host/lib/usrp/x300/x300_eth_mgr.cpp b/host/lib/usrp/x300/x300_eth_mgr.cpp index 85f7a138b..88e021005 100644 --- a/host/lib/usrp/x300/x300_eth_mgr.cpp +++ b/host/lib/usrp/x300/x300_eth_mgr.cpp @@ -45,13 +45,11 @@ namespace asio = boost::asio; namespace { constexpr unsigned int X300_UDP_RESERVED_FRAME_SIZE = 64; -// Reduced to make sure flow control packets are not blocked for too long at -// high rates: -constexpr size_t XGE_DATA_FRAME_SEND_SIZE = 4000; -constexpr size_t XGE_DATA_FRAME_RECV_SIZE = 8000; -constexpr size_t GE_DATA_FRAME_SEND_SIZE = 1472; -constexpr size_t GE_DATA_FRAME_RECV_SIZE = 1472; -constexpr size_t ETH_MSG_NUM_FRAMES = 64; +constexpr size_t XGE_DATA_FRAME_SEND_SIZE = 8972; +constexpr size_t XGE_DATA_FRAME_RECV_SIZE = 8972; +constexpr size_t GE_DATA_FRAME_SEND_SIZE = 1472; +constexpr size_t GE_DATA_FRAME_RECV_SIZE = 1472; +constexpr size_t ETH_MSG_NUM_FRAMES = 64; // Default for num data frames is set to a value that will work well when send // or recv offload is enabled, or when using DPDK. |