diff options
author | Steven Koo <steven.koo@ni.com> | 2020-08-26 11:33:40 -0500 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2020-09-03 11:44:06 -0500 |
commit | 6d414a4f2276da455e77dc1a436827349e596d79 (patch) | |
tree | e2a00123c60dc2e4aeff7cea31cdd514571de940 /host/lib/usrp/x300/x300_eth_mgr.cpp | |
parent | 73421ba19dd12f255de6fcd1a62a464b37eb51f7 (diff) | |
download | uhd-6d414a4f2276da455e77dc1a436827349e596d79.tar.gz uhd-6d414a4f2276da455e77dc1a436827349e596d79.tar.bz2 uhd-6d414a4f2276da455e77dc1a436827349e596d79.zip |
x300,mpmd: Increase recv frames for dpdk streaming
With the default 32 frames, high rate DPDK streaming would overrun or
drop samples. This defaults num_recv_frames to 512 for DPDK, which has
shown to resolve these issues.
Signed-off-by: Steven Koo <steven.koo@ni.com>
Diffstat (limited to 'host/lib/usrp/x300/x300_eth_mgr.cpp')
-rw-r--r-- | host/lib/usrp/x300/x300_eth_mgr.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/host/lib/usrp/x300/x300_eth_mgr.cpp b/host/lib/usrp/x300/x300_eth_mgr.cpp index 879b553fd..8cdba38cc 100644 --- a/host/lib/usrp/x300/x300_eth_mgr.cpp +++ b/host/lib/usrp/x300/x300_eth_mgr.cpp @@ -251,6 +251,13 @@ both_links_t eth_manager::get_links(link_type_t link_type, ETH_MSG_NUM_FRAMES * ETH_MSG_FRAME_SIZE); // enough to hold greater of 20 ms or // number of msg frames +#ifdef HAVE_DPDK + if(_args.get_use_dpdk()) { + default_link_params.num_recv_frames = default_link_params.recv_buff_size / + default_link_params.recv_frame_size; + } +#endif + link_params_t link_params = calculate_udp_link_params(link_type, get_mtu(uhd::TX_DIRECTION), get_mtu(uhd::RX_DIRECTION), |