From 9cd80e13c52daf24752b609b4ce9e437f22a33f6 Mon Sep 17 00:00:00 2001 From: mattprost Date: Tue, 29 Mar 2022 17:31:27 -0500 Subject: 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 --- host/lib/transport/uhd-dpdk/dpdk_common.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'host/lib/transport') 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 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()); -- cgit v1.2.3