From eada49e4d5a341e0af56c39585a90f63380fb5f8 Mon Sep 17 00:00:00 2001 From: Aaron Rossetto Date: Thu, 3 Sep 2020 08:34:18 -0500 Subject: 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. --- host/lib/include/uhdlib/transport/dpdk/common.hpp | 1 + 1 file changed, 1 insertion(+) (limited to 'host/lib/include') 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 _init_done; uhd::dict _routes; -- cgit v1.2.3