aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/include
diff options
context:
space:
mode:
authorAaron Rossetto <aaron.rossetto@ni.com>2020-09-03 08:34:18 -0500
committerAaron Rossetto <aaron.rossetto@ni.com>2020-09-03 15:01:12 -0500
commiteada49e4d5a341e0af56c39585a90f63380fb5f8 (patch)
tree10730e51546cfa0a29d69c64573fb13edc347c36 /host/lib/include
parent61e10fc6b689df44f0a527861ca23801947f7e62 (diff)
downloaduhd-eada49e4d5a341e0af56c39585a90f63380fb5f8.tar.gz
uhd-eada49e4d5a341e0af56c39585a90f63380fb5f8.tar.bz2
uhd-eada49e4d5a341e0af56c39585a90f63380fb5f8.zip
dpdk: Improve link status detection
This change improves the DPDK link status detection algorithm in the following ways: - The status of the links are checked at an interval of 250 ms. If all links report as being up, the driver proceeds. - If any of the DPDK links has not reported as being up by the end of the link status detection timeout (1000 ms by default), the algorithm throws a runtime error rather than proceeds with one or more down links. - Users may override the default link status detection timeout by passing dpdk_link_timeout=N, where N is the desired timeout in milliseconds, either via device arguments or in the UHD configuration file.
Diffstat (limited to 'host/lib/include')
-rw-r--r--host/lib/include/uhdlib/transport/dpdk/common.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/host/lib/include/uhdlib/transport/dpdk/common.hpp b/host/lib/include/uhdlib/transport/dpdk/common.hpp
index 280b7da64..c153c7107 100644
--- a/host/lib/include/uhdlib/transport/dpdk/common.hpp
+++ b/host/lib/include/uhdlib/transport/dpdk/common.hpp
@@ -387,6 +387,7 @@ private:
size_t _mtu;
int _num_mbufs;
int _mbuf_cache_size;
+ int _link_init_timeout;
std::mutex _init_mutex;
std::atomic<bool> _init_done;
uhd::dict<uint32_t, port_id_t> _routes;