diff options
author | Alex Williams <alex.williams@ni.com> | 2019-07-08 16:44:15 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-11-26 11:49:29 -0800 |
commit | d8e9705bc6c34b8d015b56a76955ee2f15426bd8 (patch) | |
tree | 939b9dd2e3eee34dd545befc2a910235f80bf5b1 /host/lib/rfnoc/node.cpp | |
parent | 52c38e3c22d7c83943c0e1fc0bc69a967d6fe25c (diff) | |
download | uhd-d8e9705bc6c34b8d015b56a76955ee2f15426bd8.tar.gz uhd-d8e9705bc6c34b8d015b56a76955ee2f15426bd8.tar.bz2 uhd-d8e9705bc6c34b8d015b56a76955ee2f15426bd8.zip |
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.
Diffstat (limited to 'host/lib/rfnoc/node.cpp')
-rw-r--r-- | host/lib/rfnoc/node.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
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 = |