aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/transport
diff options
context:
space:
mode:
authormattprost <matt.prost@ni.com>2022-03-29 17:31:27 -0500
committerAaron Rossetto <aaron.rossetto@ni.com>2022-04-01 13:26:09 -0700
commit9cd80e13c52daf24752b609b4ce9e437f22a33f6 (patch)
tree9f192030cd63bc9ffcbc8f33777399be4efe17d3 /host/lib/transport
parentf8c39eb07569ff4dbd34eb974e959ea7f768c206 (diff)
downloaduhd-9cd80e13c52daf24752b609b4ce9e437f22a33f6.tar.gz
uhd-9cd80e13c52daf24752b609b4ce9e437f22a33f6.tar.bz2
uhd-9cd80e13c52daf24752b609b4ce9e437f22a33f6.zip
dpdk: Add support for DPDK 18.11 API
Substituting old values to restore API breakage from DPDK 18.11 to DPDK 19. It is recommended at this point that users upgrade to more recent DPDK LTS versions, but the DPDK 18.11 API is functional with UHD. Signed-off-by: mattprost <matt.prost@ni.com>
Diffstat (limited to 'host/lib/transport')
-rw-r--r--host/lib/transport/uhd-dpdk/dpdk_common.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/host/lib/transport/uhd-dpdk/dpdk_common.cpp b/host/lib/transport/uhd-dpdk/dpdk_common.cpp
index 55bf57cdc..0f0a00e51 100644
--- a/host/lib/transport/uhd-dpdk/dpdk_common.cpp
+++ b/host/lib/transport/uhd-dpdk/dpdk_common.cpp
@@ -413,6 +413,14 @@ void dpdk_ctx::init(const device_addr_t& user_args)
unsigned int i;
std::lock_guard<std::mutex> lock(_init_mutex);
if (!_init_done) {
+#if RTE_VER_YEAR < 19 || (RTE_VER_YEAR == 19 && RTE_VER_MONTH < 11)
+ UHD_LOG_WARNING("DPDK",
+ "Deprecated DPDK version "
+ << RTE_VER_YEAR << "." << RTE_VER_MONTH
+ << " detected. Consider upgrading DPDK. Recommended versions are 19.11, "
+ "20.11, and 21.11.");
+#endif
+
/* Gather global config, build args for EAL, and init UHD-DPDK */
const device_addr_t dpdk_args = uhd::prefs::get_dpdk_args(user_args);
UHD_LOG_TRACE("DPDK", "Configuration:" << std::endl << dpdk_args.to_pp_string());