diff options
author | Nicolas Cuervo <nicolas.cuervo@ettus.com> | 2017-08-07 17:45:30 +0200 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-08-07 11:31:55 -0700 |
commit | 92515a0477fdf3da79b66cfdb918abf1d9dad613 (patch) | |
tree | 65e697dda6b523821aad6864767030da6d44bc89 /host | |
parent | bd6e21dc06cfca6f1165b1eba6ddbf5a46dc343c (diff) | |
download | uhd-92515a0477fdf3da79b66cfdb918abf1d9dad613.tar.gz uhd-92515a0477fdf3da79b66cfdb918abf1d9dad613.tar.bz2 uhd-92515a0477fdf3da79b66cfdb918abf1d9dad613.zip |
x300 impl: fix bytes/s for 1GigE
Diffstat (limited to 'host')
-rw-r--r-- | host/lib/usrp/x300/x300_impl.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/x300/x300_impl.hpp b/host/lib/usrp/x300/x300_impl.hpp index 982369396..b2990a272 100644 --- a/host/lib/usrp/x300/x300_impl.hpp +++ b/host/lib/usrp/x300/x300_impl.hpp @@ -83,7 +83,7 @@ static const size_t X300_MAX_RATE_10GIGE = (size_t)( // bytes/s ( float(X300_10GE_DATA_FRAME_MAX_SIZE - uhd::usrp::DEVICE3_TX_MAX_HDR_LEN) / float(X300_10GE_DATA_FRAME_MAX_SIZE + 8 /* UDP header */ + 20 /* Ethernet header length */ ))); static const size_t X300_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(X300_1GE_DATA_FRAME_MAX_SIZE - uhd::usrp::DEVICE3_TX_MAX_HDR_LEN) / float(X300_1GE_DATA_FRAME_MAX_SIZE + 8 /* UDP header */ + 20 /* Ethernet header length */ ))); |