Skip to content

Commit eab689e

Browse files
committed
e2,du: fixing e2->du configuration procedure
1 parent f80bd1c commit eab689e

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

lib/du_manager/procedures/du_ue_ric_configuration_procedure.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,15 @@ async_task<mac_ue_reconfiguration_response> du_ue_ric_configuration_procedure::h
7575
mac_request.sched_cfg.res_alloc_cfg.emplace();
7676
auto& res_alloc_cfg = mac_request.sched_cfg.res_alloc_cfg.value();
7777
// for now take first parameter set, in future we will have to support multiple parameter sets for different slices.
78-
control_config_params req = request.param_list[0];
79-
RRM_policy_ratio_group dummy = {};
78+
control_config_params req = request.param_list[0];
79+
RRM_policy_ratio_group dummy = {};
8080
res_alloc_cfg.rrm_policy_ratio_group =
8181
req.rrm_policy_ratio_group.has_value() ? req.rrm_policy_ratio_group.value() : dummy;
82+
// TODO remove when RRM group support is added to scheduler.
83+
res_alloc_cfg.pdsch_grant_size_limits = {
84+
req.rrm_policy_ratio_group.has_value() ? req.rrm_policy_ratio_group.value().min_PRB_policy_ratio : 0,
85+
req.rrm_policy_ratio_group.has_value() ? req.rrm_policy_ratio_group.value().max_PRB_policy_ratio : MAX_NOF_PRBS};
86+
8287
res_alloc_cfg.max_pdsch_harq_retxs = req.num_harq_retransmissions.has_value()
8388
? req.num_harq_retransmissions.value()
8489
: du_params.mac.sched_cfg.ue.max_nof_harq_retxs;

tests/unittests/du_manager/procedures/du_ue_ric_configuration_procedure_test.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ TEST_F(du_ue_ric_config_tester,
4747
{
4848
std::vector<control_config_params> param_list;
4949
RRM_policy_ratio_group pol;
50+
pol.max_PRB_policy_ratio = 10;
51+
pol.min_PRB_policy_ratio = 5;
5052
param_list.emplace_back(control_config_params{nullopt, nullopt, pol});
5153
start_procedure(du_mac_sched_control_config{(uint64_t)test_ue->f1ap_ue_id, param_list});
5254

0 commit comments

Comments
 (0)