aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp2/io_impl.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-10-14 11:51:48 -0700
committerJosh Blum <josh@joshknows.com>2010-10-14 11:51:48 -0700
commit4582a2deb385c0a4849f5d20c44a5469779bcbb2 (patch)
treea9a939d44e33b82974f07002d66d51727b668429 /host/lib/usrp/usrp2/io_impl.cpp
parent376e22ca3bf25c8d6bb53cd987b245e5b79860f9 (diff)
downloaduhd-4582a2deb385c0a4849f5d20c44a5469779bcbb2.tar.gz
uhd-4582a2deb385c0a4849f5d20c44a5469779bcbb2.tar.bz2
uhd-4582a2deb385c0a4849f5d20c44a5469779bcbb2.zip
usrp2: move udp port initialization into mboard impl so its done before async registers are setup
Diffstat (limited to 'host/lib/usrp/usrp2/io_impl.cpp')
-rw-r--r--host/lib/usrp/usrp2/io_impl.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/host/lib/usrp/usrp2/io_impl.cpp b/host/lib/usrp/usrp2/io_impl.cpp
index 25fd1c484..8314cf9ae 100644
--- a/host/lib/usrp/usrp2/io_impl.cpp
+++ b/host/lib/usrp/usrp2/io_impl.cpp
@@ -242,16 +242,6 @@ void usrp2_impl::io_impl::recv_pirate_loop(
* Helper Functions
**********************************************************************/
void usrp2_impl::io_init(void){
- //send a small data packet so the usrp2 knows the udp source port
- BOOST_FOREACH(zero_copy_if::sptr data_transport, _data_transports){
- managed_send_buffer::sptr send_buff = data_transport->get_send_buff();
- static const boost::uint32_t data[2] = {
- uhd::htonx(boost::uint32_t(0 /* don't care seq num */)),
- uhd::htonx(boost::uint32_t(USRP2_INVALID_VRT_HEADER))
- };
- std::memcpy(send_buff->cast<void*>(), &data, sizeof(data));
- send_buff->commit(sizeof(data));
- }
//the assumption is that all data transports should be identical
const size_t num_recv_frames = _data_transports.front()->get_num_recv_frames();