From 20baa413a08cdf42ec30d6bc0aeb0c665ee590fe Mon Sep 17 00:00:00 2001 From: Alex Williams Date: Tue, 4 Jun 2019 15:35:44 -0700 Subject: rfnoc: Make a chdr_ctrl_xport using the new link APIs These changes add APIs to instantiate the new transports. However, only the control/management transport is currently implemented. It uses the chdr_ctrl_xport. Also update the mgmt_portal to use an ephemeral reference to the shared transport, to indicate that it has no ownership of the transport's memory. --- host/lib/include/uhdlib/rfnoc/chdr_ctrl_endpoint.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'host/lib/include/uhdlib/rfnoc/chdr_ctrl_endpoint.hpp') diff --git a/host/lib/include/uhdlib/rfnoc/chdr_ctrl_endpoint.hpp b/host/lib/include/uhdlib/rfnoc/chdr_ctrl_endpoint.hpp index b3c3e0108..1281cc0ea 100644 --- a/host/lib/include/uhdlib/rfnoc/chdr_ctrl_endpoint.hpp +++ b/host/lib/include/uhdlib/rfnoc/chdr_ctrl_endpoint.hpp @@ -7,6 +7,7 @@ #ifndef INCLUDED_LIBUHD_RFNOC_CHDR_CTRL_ENDPOINT_HPP #define INCLUDED_LIBUHD_RFNOC_CHDR_CTRL_ENDPOINT_HPP +#include #include #include #include @@ -46,11 +47,11 @@ public: //! Creates a control endpoint object // - // \param xports The transports used to send and recv packets + // \param xport The transport used to send and recv packets // \param pkt_factor An instance of the CHDR packet factory // \param my_epid The endpoint ID of this software endpoint // - static uptr make(const chdr_ctrl_xport_t& xports, + static uptr make(chdr_ctrl_xport::sptr xport, const chdr::chdr_packet_factory& pkt_factory, sep_id_t my_epid); -- cgit v1.2.3