aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/rfnoc/switchboard_block_control.cpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2022-01-26 10:12:38 +0100
committerAaron Rossetto <aaron.rossetto@ni.com>2022-02-01 14:41:07 -0600
commit930fa39c601d1601884ca6ead9f44841f0348f18 (patch)
tree53a19ff505eeabc0bcc4f93f8137493ef4bfdaf9 /host/lib/rfnoc/switchboard_block_control.cpp
parentcba3c8351d39a67262114a0d419b5c708cdb2c2b (diff)
downloaduhd-930fa39c601d1601884ca6ead9f44841f0348f18.tar.gz
uhd-930fa39c601d1601884ca6ead9f44841f0348f18.tar.bz2
uhd-930fa39c601d1601884ca6ead9f44841f0348f18.zip
rfnoc: Update the MTU forwarding property for some blocks
Note that the default MTU forwarding policy is ONE_TO_ONE, therefore, it is only strictly necessary to modify the MTU forwarding policy for blocks that route data in a different manner. However, it may be nice to explicitly state the forwarding policy for the benefit of the reader. The following blocks had their policies updated: - addsub: ONE_TO_FAN - duc: ONE_TO_ONE - dmafifo: ONE_TO_ONE - null block: DROP - replay block: DROP - split stream: ONE_TO_FAN - switchboard: ONE_TO_FAN
Diffstat (limited to 'host/lib/rfnoc/switchboard_block_control.cpp')
-rw-r--r--host/lib/rfnoc/switchboard_block_control.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/host/lib/rfnoc/switchboard_block_control.cpp b/host/lib/rfnoc/switchboard_block_control.cpp
index eec7f666f..b577d510d 100644
--- a/host/lib/rfnoc/switchboard_block_control.cpp
+++ b/host/lib/rfnoc/switchboard_block_control.cpp
@@ -36,6 +36,10 @@ public:
// Configure property propagation and action forwarding behavior.
set_prop_forwarding_policy(forwarding_policy_t::USE_MAP);
set_action_forwarding_policy(forwarding_policy_t::USE_MAP);
+ // MTU forwarding doesn't allow for USE_MAP, but we assume that packets
+ // coming in may potentially go to any output port. We thus fan out the
+ // MTU propagation.
+ set_mtu_forwarding_policy(forwarding_policy_t::ONE_TO_FAN);
_update_forwarding_map();
}