diff options
author | michael-west <michael.west@ettus.com> | 2020-11-03 06:06:06 -0800 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2020-11-06 07:38:36 -0600 |
commit | 62520cc4d481184d8ebd299f3ce1a5b301e77d02 (patch) | |
tree | da1c9eb5898e8d07ad3bdc374c77013247d5467d /host/lib | |
parent | 69c72b6842bd69e08c2600305f612f4b057db057 (diff) | |
download | uhd-62520cc4d481184d8ebd299f3ce1a5b301e77d02.tar.gz uhd-62520cc4d481184d8ebd299f3ce1a5b301e77d02.tar.bz2 uhd-62520cc4d481184d8ebd299f3ce1a5b301e77d02.zip |
MPMD: Reduce max frame size for 10 GbE
MTU discovery is passing on sizes beyond the maximum size, which allows
packets to exceed the default MTU size of 8000 set for 10 GbE. This
can cause TX to stop when using higher sample rates.
Reducing the maximum frame size to 7972 (8000 minus 28 bytes for UDP
and IP headers) guarantees the packet size will never exceed the default
MTU for 10 GbE.
Signed-off-by: michael-west <michael.west@ettus.com>
Diffstat (limited to 'host/lib')
-rw-r--r-- | host/lib/usrp/mpmd/mpmd_link_if_ctrl_udp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/mpmd/mpmd_link_if_ctrl_udp.cpp b/host/lib/usrp/mpmd/mpmd_link_if_ctrl_udp.cpp index 62c4a8ecc..56557bc39 100644 --- a/host/lib/usrp/mpmd/mpmd_link_if_ctrl_udp.cpp +++ b/host/lib/usrp/mpmd/mpmd_link_if_ctrl_udp.cpp @@ -29,7 +29,7 @@ using namespace uhd::mpmd::xport; namespace { //! Maximum CHDR packet size in bytes -const size_t MPMD_10GE_DATA_FRAME_MAX_SIZE = 8000; +const size_t MPMD_10GE_DATA_FRAME_MAX_SIZE = 7972; const size_t MPMD_1GE_DATA_FRAME_MAX_SIZE = 1472; const size_t MPMD_1GE_ASYNCMSG_FRAME_MAX_SIZE = 1472; |