|
11 | 11 | #include "srsran/ofh/ofh_factories.h" |
12 | 12 | #include "ofh_sector_impl.h" |
13 | 13 | #include "receiver/ofh_receiver_impl.h" |
14 | | -#include "serdes/ofh_cplane_message_builder_impl.h" |
| 14 | +#include "serdes/ofh_cplane_message_builder_dynamic_compression_impl.h" |
| 15 | +#include "serdes/ofh_cplane_message_builder_static_compression_impl.h" |
15 | 16 | #include "serdes/ofh_uplane_message_builder_dynamic_compression_impl.h" |
16 | 17 | #include "serdes/ofh_uplane_message_builder_static_compression_impl.h" |
17 | 18 | #include "serdes/ofh_uplane_message_decoder_dynamic_compression_impl.h" |
@@ -50,7 +51,9 @@ create_data_flow_cplane_sched(const transmitter_config& |
50 | 51 | config.frame_pool = std::move(frame_pool); |
51 | 52 | config.eth_builder = ether::create_vlan_frame_builder(); |
52 | 53 | config.ecpri_builder = ecpri::create_ecpri_packet_builder(); |
53 | | - config.cp_builder = ofh::create_ofh_control_plane_packet_builder(); |
| 54 | + config.cp_builder = (tx_config.is_downlink_static_comp_hdr_enabled) |
| 55 | + ? ofh::create_ofh_control_plane_static_compression_message_builder() |
| 56 | + : ofh::create_ofh_control_plane_dynamic_compression_message_builder(); |
54 | 57 |
|
55 | 58 | config.nof_symbols = get_nsymb_per_slot(tx_config.cp); |
56 | 59 | config.ru_nof_prbs = |
@@ -107,9 +110,14 @@ create_data_flow_uplane_data(const transmitter_config& tx_config, |
107 | 110 | return std::make_unique<data_flow_uplane_downlink_data_impl>(std::move(config)); |
108 | 111 | } |
109 | 112 |
|
110 | | -std::unique_ptr<cplane_message_builder> srsran::ofh::create_ofh_control_plane_packet_builder() |
| 113 | +std::unique_ptr<cplane_message_builder> srsran::ofh::create_ofh_control_plane_static_compression_message_builder() |
111 | 114 | { |
112 | | - return std::make_unique<cplane_message_builder_impl>(); |
| 115 | + return std::make_unique<cplane_message_builder_static_compression_impl>(); |
| 116 | +} |
| 117 | + |
| 118 | +std::unique_ptr<cplane_message_builder> srsran::ofh::create_ofh_control_plane_dynamic_compression_message_builder() |
| 119 | +{ |
| 120 | + return std::make_unique<cplane_message_builder_dynamic_compression_impl>(); |
113 | 121 | } |
114 | 122 |
|
115 | 123 | std::unique_ptr<uplane_message_builder> |
|
0 commit comments