From d8e9705bc6c34b8d015b56a76955ee2f15426bd8 Mon Sep 17 00:00:00 2001 From: Alex Williams Date: Mon, 8 Jul 2019 16:44:15 -0700 Subject: rfnoc: Add tracking of 'valid' bit to properties The valid bit helps prevent placeholder defaults from being propagated through the graph. Values that are not valid will not be forwarded. --- host/lib/rfnoc/node.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'host/lib/rfnoc/node.cpp') diff --git a/host/lib/rfnoc/node.cpp b/host/lib/rfnoc/node.cpp index b3ad2b380..cdb69e158 100644 --- a/host/lib/rfnoc/node.cpp +++ b/host/lib/rfnoc/node.cpp @@ -444,6 +444,15 @@ void node_t::forward_edge_property( "Incoming edge property: `" << incoming_prop->get_id() << "`, source info: " << incoming_prop->get_src_info().to_string()); + // Don't forward properties that are not yet valid + if (!incoming_prop->is_valid()) { + UHD_LOG_TRACE(get_unique_id(), + "Skipped empty edge property: `" + << incoming_prop->get_id() + << "`, source info: " << incoming_prop->get_src_info().to_string()); + return; + } + // The source type of my local prop (it's the opposite of the source type // of incoming_prop) const auto prop_src_type = -- cgit v1.2.3