aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/rfnoc
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/rfnoc')
-rw-r--r--host/lib/rfnoc/noc_block_base.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/host/lib/rfnoc/noc_block_base.cpp b/host/lib/rfnoc/noc_block_base.cpp
index f854ca8d4..a43249e47 100644
--- a/host/lib/rfnoc/noc_block_base.cpp
+++ b/host/lib/rfnoc/noc_block_base.cpp
@@ -352,7 +352,12 @@ void noc_block_base::shutdown()
void noc_block_base::post_init()
{
- // nop
+ // Verify the block set its MTU forwarding policy. If not, set it to the
+ // default value.
+ if (!_mtu_fwd_policy_set) {
+ RFNOC_LOG_INFO("Setting default MTU forward policy.");
+ set_mtu_forwarding_policy(_mtu_fwd_policy);
+ }
}
std::shared_ptr<mb_controller> noc_block_base::get_mb_controller()