diff options
author | Martin Braun <martin.braun@ettus.com> | 2021-09-06 10:35:35 +0200 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2021-09-07 14:54:13 -0500 |
commit | e3072176b0990aa17a62768d2d1cb62141898308 (patch) | |
tree | b18e6b2b4a24330367503ddab3a04a422cb24c4d | |
parent | 65831df17eec7857fdacc77934ba8babcd308baa (diff) | |
download | uhd-e3072176b0990aa17a62768d2d1cb62141898308.tar.gz uhd-e3072176b0990aa17a62768d2d1cb62141898308.tar.bz2 uhd-e3072176b0990aa17a62768d2d1cb62141898308.zip |
x300: Fix MAX_RATE_1GIGE value
It held the same value as MAX_RATE_10GIGE due to a typo.
-rw-r--r-- | host/lib/usrp/x300/x300_eth_mgr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/x300/x300_eth_mgr.cpp b/host/lib/usrp/x300/x300_eth_mgr.cpp index c5ddf54f3..b52c11f51 100644 --- a/host/lib/usrp/x300/x300_eth_mgr.cpp +++ b/host/lib/usrp/x300/x300_eth_mgr.cpp @@ -62,7 +62,7 @@ constexpr size_t MAX_RATE_10GIGE = (size_t)( // bytes/s / float(x300::DATA_FRAME_MAX_SIZE + 8 /* UDP header */ + 20 /* Ethernet header length */))); constexpr size_t MAX_RATE_1GIGE = (size_t)( // bytes/s - 10e9 / 8 * // wire speed multiplied by percentage of packets that is sample data + 1e9 / 8 * // wire speed multiplied by percentage of packets that is sample data (float(GE_DATA_FRAME_RECV_SIZE - CHDR_MAX_LEN_HDR) / float(GE_DATA_FRAME_RECV_SIZE + 8 /* UDP header */ + 20 /* Ethernet header length */))); |