aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-01-21 12:06:48 -0800
committerJosh Blum <josh@joshknows.com>2011-01-21 12:07:36 -0800
commit0173a513cc517f41d911e501209076b26d9217d0 (patch)
treeee3ce853c2fef3e470c1652fcec890a8a19adde2
parent30de3109569f76b01a2d7d58b88a12c60ccd61ff (diff)
downloaduhd-0173a513cc517f41d911e501209076b26d9217d0.tar.gz
uhd-0173a513cc517f41d911e501209076b26d9217d0.tar.bz2
uhd-0173a513cc517f41d911e501209076b26d9217d0.zip
udp: shrink default recv_frame_size by 4 bytes until FPGA handles 2 byte pad correctly (1516)
-rw-r--r--host/lib/transport/udp_zero_copy_asio.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/transport/udp_zero_copy_asio.cpp b/host/lib/transport/udp_zero_copy_asio.cpp
index 5c049cfad..6d1a7413b 100644
--- a/host/lib/transport/udp_zero_copy_asio.cpp
+++ b/host/lib/transport/udp_zero_copy_asio.cpp
@@ -94,7 +94,7 @@ public:
const std::string &port,
const device_addr_t &hints
):
- _recv_frame_size(size_t(hints.cast<double>("recv_frame_size", udp_simple::mtu))),
+ _recv_frame_size(size_t(hints.cast<double>("recv_frame_size", udp_simple::mtu-4))), //TODO remove -4 when FPGA handles 2 byte pad correctly
_num_recv_frames(size_t(hints.cast<double>("num_recv_frames", DEFAULT_NUM_RECV_FRAMES))),
_send_frame_size(size_t(hints.cast<double>("send_frame_size", udp_simple::mtu))),
_num_send_frames(size_t(hints.cast<double>("num_send_frames", DEFAULT_NUM_SEND_FRAMES))),