From 930fa39c601d1601884ca6ead9f44841f0348f18 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Wed, 26 Jan 2022 10:12:38 +0100 Subject: 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 --- host/lib/rfnoc/dmafifo_block_control.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'host/lib/rfnoc/dmafifo_block_control.cpp') diff --git a/host/lib/rfnoc/dmafifo_block_control.cpp b/host/lib/rfnoc/dmafifo_block_control.cpp index efc8d27cb..cecd9ff3e 100644 --- a/host/lib/rfnoc/dmafifo_block_control.cpp +++ b/host/lib/rfnoc/dmafifo_block_control.cpp @@ -30,6 +30,9 @@ public: UHD_ASSERT_THROW(get_num_input_ports() == get_num_output_ports()); set_action_forwarding_policy(forwarding_policy_t::ONE_TO_ONE); set_prop_forwarding_policy(forwarding_policy_t::ONE_TO_ONE); + // This line is not strictly necessary, as ONE_TO_ONE is the default. + // We set it make it explicit how this block works. + set_mtu_forwarding_policy(forwarding_policy_t::ONE_TO_ONE); // Now init DMA/DRAM control _fifo_cores.reserve(get_num_input_ports()); for (size_t i = 0; i < get_num_input_ports(); i++) { -- cgit v1.2.3