diff options
author | Josh Blum <josh@joshknows.com> | 2010-12-22 16:02:09 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-12-22 16:02:09 -0800 |
commit | de45f2234ca7ce8a1efd79525323bef55f1f9d44 (patch) | |
tree | 435dce2c2e8ff862f84cb47d0bc81f867d2fad1d /host/lib/usrp/usrp2/usrp2_impl.cpp | |
parent | b6983381e46f5bb1156da2e40580a97fd09b9e37 (diff) | |
download | uhd-de45f2234ca7ce8a1efd79525323bef55f1f9d44.tar.gz uhd-de45f2234ca7ce8a1efd79525323bef55f1f9d44.tar.bz2 uhd-de45f2234ca7ce8a1efd79525323bef55f1f9d44.zip |
udp_ports: enable async recv in xport, set performance params in top level, things working
Diffstat (limited to 'host/lib/usrp/usrp2/usrp2_impl.cpp')
-rw-r--r-- | host/lib/usrp/usrp2/usrp2_impl.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/host/lib/usrp/usrp2/usrp2_impl.cpp b/host/lib/usrp/usrp2/usrp2_impl.cpp index 3f8da5fda..f910999d4 100644 --- a/host/lib/usrp/usrp2/usrp2_impl.cpp +++ b/host/lib/usrp/usrp2/usrp2_impl.cpp @@ -197,7 +197,14 @@ static device_addrs_t usrp2_find(const device_addr_t &hint_){ * Make **********************************************************************/ static device::sptr usrp2_make(const device_addr_t &device_addr){ -sep_indexed_dev_addrs(device_addr); + + //setup the dsp transport hints (default to a large recv buff) + device_addr_t dsp_xport_hints = device_addr; + if (not dsp_xport_hints.has_key("recv_buff_size")){ + //set to half-a-second of buffering at max rate + dsp_xport_hints["recv_buff_size"] = "50e6"; + } + //create a ctrl and data transport for each address std::vector<udp_simple::sptr> ctrl_transports; std::vector<zero_copy_if::sptr> data_transports; @@ -209,7 +216,7 @@ sep_indexed_dev_addrs(device_addr); dev_addr_i["addr"], num2str(USRP2_UDP_CTRL_PORT) )); data_transports.push_back(udp_zero_copy::make( - dev_addr_i["addr"], num2str(USRP2_UDP_DATA_PORT), device_addr + dev_addr_i["addr"], num2str(USRP2_UDP_DATA_PORT), dsp_xport_hints )); err0_transports.push_back(udp_zero_copy::make( dev_addr_i["addr"], num2str(USRP2_UDP_ERR0_PORT), device_addr_t() |