Skip to content

Commit d6e48ca

Browse files
committed
sched: move UE config removal out of critical path also during UE creation/reconfig
1 parent 4c6003c commit d6e48ca

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/scheduler/config/sched_config_manager.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,10 @@ void sched_config_manager::handle_ue_config_complete(du_ue_index_t ue_index, std
215215
}
216216

217217
// Stores new UE config and deletes old config.
218-
ue_cfg_list[ue_index] = std::move(next_cfg);
218+
ue_cfg_list[ue_index].swap(next_cfg);
219+
if (not ues_to_rem.try_push(std::move(next_cfg))) {
220+
logger.warning("Failed to offload UE config removal. Performance may be affected");
221+
}
219222

220223
// Notifies MAC that event is complete.
221224
config_notifier.on_ue_config_complete(ue_index, true);

0 commit comments

Comments
 (0)