From 7b3bf4bdc00f9c6f56edc1823fade0408aec290f Mon Sep 17 00:00:00 2001 From: michael-west Date: Thu, 6 Aug 2020 10:36:56 -0700 Subject: 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 --- host/lib/usrp/x300/x300_eth_mgr.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'host/lib') 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. -- cgit v1.2.3