From 32c47d4fac2c056226e4db8a76ec70e99a1ce2ac Mon Sep 17 00:00:00 2001 From: Francisco Paisana Date: Thu, 14 Jan 2021 17:03:30 +0000 Subject: [PATCH] change sched warning when it fails to fit srb0 data in grant to info --- srsenb/hdr/stack/mac/sched_common.h | 2 +- srsenb/src/stack/mac/sched_ue.cc | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/srsenb/hdr/stack/mac/sched_common.h b/srsenb/hdr/stack/mac/sched_common.h index 6c520d920..650302fdd 100644 --- a/srsenb/hdr/stack/mac/sched_common.h +++ b/srsenb/hdr/stack/mac/sched_common.h @@ -47,7 +47,7 @@ public: const sched_interface::cell_cfg_t& cfg_, const sched_interface::sched_args_t& sched_args); // convenience getters - uint32_t prb_to_rbg(uint32_t nof_prbs) const { return (nof_prbs + (P - 1)) / P; } + uint32_t prb_to_rbg(uint32_t nof_prbs) const { return srslte::ceil_div(nof_prbs, P); } uint32_t nof_prb() const { return cfg.cell.nof_prb; } uint32_t enb_cc_idx = 0; diff --git a/srsenb/src/stack/mac/sched_ue.cc b/srsenb/src/stack/mac/sched_ue.cc index a007d65fe..702df4595 100644 --- a/srsenb/src/stack/mac/sched_ue.cc +++ b/srsenb/src/stack/mac/sched_ue.cc @@ -578,7 +578,8 @@ std::pair sched_ue::compute_mcs_and_tbs(uint32_t ue_cc_i } if (tbs_bytes > 0 and (uint32_t) tbs_bytes < req_bytes.start() and mcs < 28) { - log_h->warning("SCHED: Could not get PRB allocation that avoids MAC CE or RLC SBR0 PDU segmentation\n"); + log_h->info("SCHED: Could not get PRB allocation that avoids MAC CE or RLC SRB0 PDU segmentation\n"); + // Note: This is not a warning, because the srb0 buffer can be updated after the ue sched decision } return {mcs, tbs_bytes};