diff options
author | Martin Braun <martin.braun@ettus.com> | 2019-07-26 15:08:18 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-11-26 11:49:33 -0800 |
commit | 9b8e4e652c168e76f7cf2ca0a699640961b8e6ce (patch) | |
tree | c7ed65d9898aca0cddcc469b403dfe19c7292609 /host/lib/rfnoc/ddc_block_control.cpp | |
parent | ab87597e9e76854237b5d78f7d35959b14e9737b (diff) | |
download | uhd-9b8e4e652c168e76f7cf2ca0a699640961b8e6ce.tar.gz uhd-9b8e4e652c168e76f7cf2ca0a699640961b8e6ce.tar.bz2 uhd-9b8e4e652c168e76f7cf2ca0a699640961b8e6ce.zip |
rfnoc: Add MTU tracking
MTUs are now tracked through the framework for all childs of
noc_block_base. Every edge gets an 'mtu' property. MTU can be set and
get either through the prop API, or through new API calls (get_mtu(),
set_mtu()). It is also possible to create custom properties that depend
on the MTU by asking for a reference to the MTU property, and then
adding that to the input list of a property resolver.
The radio_control_impl includes a change in this commit where it sets
the spp based on the MTU.
Blocks can also set an MTU forwarding policy. The DDC block includes a
change in this commit that sets a forwarding policy of ONE_TO_ONE,
meaning that the MTU on an input edge is forwarded to the corresponding
output edge (but not the other edges, as with the tick rate).
Diffstat (limited to 'host/lib/rfnoc/ddc_block_control.cpp')
-rw-r--r-- | host/lib/rfnoc/ddc_block_control.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/host/lib/rfnoc/ddc_block_control.cpp b/host/lib/rfnoc/ddc_block_control.cpp index 0c2721833..37286b29d 100644 --- a/host/lib/rfnoc/ddc_block_control.cpp +++ b/host/lib/rfnoc/ddc_block_control.cpp @@ -71,6 +71,7 @@ public: << " halfbands and " "max CIC decimation " << _cic_max_decim); + set_mtu_forwarding_policy(forwarding_policy_t::ONE_TO_ONE); // Load list of valid decimation values std::set<size_t> decims{1}; // 1 is always a valid decimatino for (size_t hb = 0; hb < _num_halfbands; hb++) { |