aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Amsel <lars.amsel@ni.com>2019-02-26 15:15:20 +0100
committerMartin Braun <martin.braun@ettus.com>2019-02-27 09:50:27 -0800
commit5f14433d63831b7f6c6b5b0c71ed6f3e96f171a7 (patch)
treee754541ff210315175873126ca417fa5dce369df
parent1dbc0229b7718313aa5f9dd3526f4a43f538d9c9 (diff)
downloaduhd-5f14433d63831b7f6c6b5b0c71ed6f3e96f171a7.tar.gz
uhd-5f14433d63831b7f6c6b5b0c71ed6f3e96f171a7.tar.bz2
uhd-5f14433d63831b7f6c6b5b0c71ed6f3e96f171a7.zip
transport: udp: Fix buffer size warning
When using a buffer size smaller than recommended, a warning would be printed with the wrong value (it would print the default value, not the actual value).
-rw-r--r--host/lib/transport/udp_zero_copy.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/transport/udp_zero_copy.cpp b/host/lib/transport/udp_zero_copy.cpp
index 1ccee72a2..6d615570f 100644
--- a/host/lib/transport/udp_zero_copy.cpp
+++ b/host/lib/transport/udp_zero_copy.cpp
@@ -425,7 +425,7 @@ udp_zero_copy::sptr udp_zero_copy::make(const std::string& addr,
< xport_params.num_recv_frames * MAX_ETHERNET_MTU) {
UHD_LOG_WARNING("UDP",
"The current recv_buff_size of "
- << xport_params.recv_buff_size
+ << buff_params_out.recv_buff_size
<< " is less than the minimum recommended size of "
<< xport_params.num_recv_frames * MAX_ETHERNET_MTU
<< " and may result in dropped packets on some NICs");
@@ -434,7 +434,7 @@ udp_zero_copy::sptr udp_zero_copy::make(const std::string& addr,
< xport_params.num_send_frames * MAX_ETHERNET_MTU) {
UHD_LOG_WARNING("UDP",
"The current send_buff_size of "
- << xport_params.send_buff_size
+ << buff_params_out.send_buff_size
<< " is less than the minimum recommended size of "
<< xport_params.num_send_frames * MAX_ETHERNET_MTU
<< " and may result in dropped packets on some NICs");