From e3072176b0990aa17a62768d2d1cb62141898308 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Mon, 6 Sep 2021 10:35:35 +0200 Subject: x300: Fix MAX_RATE_1GIGE value It held the same value as MAX_RATE_10GIGE due to a typo. --- host/lib/usrp/x300/x300_eth_mgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (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 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 */))); -- cgit v1.2.3