From 87dbcd9f1a5b2b464c27af56c3a91ab00f66c441 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Fri, 1 Dec 2017 16:14:11 -0800 Subject: mpmd: Refactor MPM transport architecture, use managers This splits up the transport code in mpmd_impl across multiple classes to properly leverage the request_xport/commit_xport API in MPM. Different types of transport (UDP, liberio) use their own distinct classes, which are generated dynamically on request. This is a true refactoring despite the large amount of changes; there are no functional differences. Reviewed-By: Brent Stapleton Reviewed-By: Trung Tran Reviewed-By: Ashish Chaudhari --- host/lib/usrp/mpmd/CMakeLists.txt | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'host/lib/usrp/mpmd/CMakeLists.txt') diff --git a/host/lib/usrp/mpmd/CMakeLists.txt b/host/lib/usrp/mpmd/CMakeLists.txt index 5bc8e2d08..e4ce0e316 100644 --- a/host/lib/usrp/mpmd/CMakeLists.txt +++ b/host/lib/usrp/mpmd/CMakeLists.txt @@ -17,14 +17,23 @@ IF(ENABLE_MPMD) IF(ENABLE_LIBERIO) - MESSAGE(STATUS "Compiling MPM with liberio support...") - ADD_DEFINITIONS(-DHAVE_LIBERIO) + MESSAGE(STATUS "Compiling MPMD with liberio support...") + ADD_DEFINITIONS(-DHAVE_LIBERIO) ENDIF(ENABLE_LIBERIO) LIBUHD_APPEND_SOURCES( + ${CMAKE_CURRENT_SOURCE_DIR}/mpmd_image_loader.cpp ${CMAKE_CURRENT_SOURCE_DIR}/mpmd_impl.cpp ${CMAKE_CURRENT_SOURCE_DIR}/mpmd_mboard_impl.cpp ${CMAKE_CURRENT_SOURCE_DIR}/mpmd_xport.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/mpmd_image_loader.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/mpmd_xport_mgr.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/mpmd_xport_ctrl_udp.cpp ) + + IF(ENABLE_LIBERIO) + LIBUHD_APPEND_SOURCES( + ${CMAKE_CURRENT_SOURCE_DIR}/mpmd_xport_ctrl_liberio.cpp + ) + ENDIF(ENABLE_LIBERIO) + ENDIF(ENABLE_MPMD) -- cgit v1.2.3