@@ -329,7 +329,6 @@ static alloc_result alloc_ul_ue(const slice_ue& u,
329329 bool schedule_sr_only,
330330 srslog::basic_logger& logger,
331331 ran_slice_id_t slice_id,
332- slot_point pusch_slot,
333332 std::optional<unsigned > ul_new_tx_max_nof_rbs_per_ue_per_slot = {})
334333{
335334 unsigned pending_newtx_bytes = 0 ;
@@ -359,7 +358,7 @@ static alloc_result alloc_ul_ue(const slice_ue& u,
359358
360359 // Iterate through allocation parameter candidates.
361360 for (const ul_harq_process* h_ul : harq_candidates) {
362- ue_pusch_grant grant{&u, ue_cc.cell_index , h_ul->id , pusch_slot };
361+ ue_pusch_grant grant{&u, ue_cc.cell_index , h_ul->id };
363362 if (not is_retx) {
364363 grant.recommended_nof_bytes = pending_newtx_bytes;
365364 grant.max_nof_rbs = ul_new_tx_max_nof_rbs_per_ue_per_slot;
@@ -424,10 +423,9 @@ void scheduler_time_rr::ul_sched(ue_pusch_allocator& pusch_alloc,
424423 const ue_resource_grid_view& res_grid,
425424 ul_ran_slice_candidate& slice_candidate)
426425{
427- const slice_ue_repository& ues = slice_candidate.get_slice_ues ();
428- const unsigned max_rbs = slice_candidate.remaining_rbs ();
429- const ran_slice_id_t slice_id = slice_candidate.id ();
430- const slot_point pusch_slot = slice_candidate.get_slot_tx ();
426+ const slice_ue_repository& ues = slice_candidate.get_slice_ues ();
427+ const unsigned max_rbs = slice_candidate.remaining_rbs ();
428+ const ran_slice_id_t slice_id = slice_candidate.id ();
431429
432430 if (ues.empty () or max_rbs == 0 ) {
433431 // No UEs to be scheduled or if there are no RBs to be scheduled in slice.
@@ -438,20 +436,18 @@ void scheduler_time_rr::ul_sched(ue_pusch_allocator& pusch_alloc,
438436 const unsigned ul_new_tx_max_nof_rbs_per_ue_per_slot =
439437 compute_max_nof_rbs_per_ue_per_slot (ues, false , res_grid, expert_cfg, max_rbs);
440438 // First, schedule UEs with pending SR.
441- auto sr_ue_function =
442- [this , &pusch_alloc, ul_new_tx_max_nof_rbs_per_ue_per_slot, slice_id, pusch_slot](const slice_ue& u) {
443- return alloc_ul_ue (
444- u, pusch_alloc, false , true , logger, slice_id, pusch_slot, ul_new_tx_max_nof_rbs_per_ue_per_slot);
445- };
439+ auto sr_ue_function = [this , &pusch_alloc, ul_new_tx_max_nof_rbs_per_ue_per_slot, slice_id](const slice_ue& u) {
440+ return alloc_ul_ue (u, pusch_alloc, false , true , logger, slice_id, ul_new_tx_max_nof_rbs_per_ue_per_slot);
441+ };
446442 auto result = round_robin_apply (ues, next_ul_ue_index, sr_ue_function);
447443 next_ul_ue_index = result.first ;
448444 if (result.second == alloc_status::skip_slot) {
449445 return ;
450446 }
451447
452448 // Second, schedule UEs with re-transmissions.
453- auto data_retx_ue_function = [this , &pusch_alloc, slice_id, pusch_slot ](const slice_ue& u) {
454- return alloc_ul_ue (u, pusch_alloc, true , false , logger, slice_id, pusch_slot );
449+ auto data_retx_ue_function = [this , &pusch_alloc, slice_id](const slice_ue& u) {
450+ return alloc_ul_ue (u, pusch_alloc, true , false , logger, slice_id);
455451 };
456452 result = round_robin_apply (ues, next_ul_ue_index, data_retx_ue_function);
457453 next_ul_ue_index = result.first ;
@@ -462,9 +458,8 @@ void scheduler_time_rr::ul_sched(ue_pusch_allocator& pusch_alloc,
462458 // Then, schedule UEs with new transmissions.
463459 if (ul_new_tx_max_nof_rbs_per_ue_per_slot > 0 ) {
464460 auto data_tx_ue_function =
465- [this , &pusch_alloc, ul_new_tx_max_nof_rbs_per_ue_per_slot, slice_id, pusch_slot](const slice_ue& u) {
466- return alloc_ul_ue (
467- u, pusch_alloc, false , false , logger, slice_id, pusch_slot, ul_new_tx_max_nof_rbs_per_ue_per_slot);
461+ [this , &pusch_alloc, ul_new_tx_max_nof_rbs_per_ue_per_slot, slice_id](const slice_ue& u) {
462+ return alloc_ul_ue (u, pusch_alloc, false , false , logger, slice_id, ul_new_tx_max_nof_rbs_per_ue_per_slot);
468463 };
469464 result = round_robin_apply (ues, next_ul_ue_index, data_tx_ue_function);
470465 next_ul_ue_index = result.first ;
0 commit comments