nr,gnb,sched: avoid logging warning for pending feedback of UEs that were just removed

master
Francisco 3 years ago committed by Andre Puschmann
parent b3e974db9b
commit 859f4d2185

@ -101,7 +101,14 @@ void sched_nr::ue_cfg(uint16_t rnti, const ue_cfg_t& uecfg)
void sched_nr::ue_rem(uint16_t rnti) void sched_nr::ue_rem(uint16_t rnti)
{ {
sched_workers->enqueue_event(rnti, [this, rnti]() { ue_db.erase(rnti); }); sched_workers->enqueue_event(rnti, [this, rnti]() {
auto ue_it = ue_db.find(rnti);
if (ue_it == ue_db.end()) {
logger->warning("SCHED: ue_rem(rnti) called for inexistent rnti=0x%x", rnti);
return;
}
ue_db.erase(rnti);
});
} }
bool sched_nr::ue_exists(uint16_t rnti) bool sched_nr::ue_exists(uint16_t rnti)

@ -57,7 +57,7 @@ void slot_cc_worker::run_feedback(ue_map_t& ue_db)
if (ue_db.contains(f.rnti) and ue_db[f.rnti]->carriers[cfg.cc] != nullptr) { if (ue_db.contains(f.rnti) and ue_db[f.rnti]->carriers[cfg.cc] != nullptr) {
f.fdbk(*ue_db[f.rnti]->carriers[cfg.cc]); f.fdbk(*ue_db[f.rnti]->carriers[cfg.cc]);
} else { } else {
logger.warning("SCHED: feedback received for invalid rnti=0x%x, cc=%d", f.rnti, cfg.cc); logger.info("SCHED: feedback received for rnti=0x%x, cc=%d that has been removed.", f.rnti, cfg.cc);
} }
} }
tmp_feedback_to_run.clear(); tmp_feedback_to_run.clear();

Loading…
Cancel
Save