Commit ceece569 authored by Robert Schmidt's avatar Robert Schmidt

rename flexran_slice_member() -> ue_slice_membership()

parent 8108d59a
...@@ -710,7 +710,7 @@ schedule_ue_spec(module_id_t module_idP,slice_id_t slice_idP, ...@@ -710,7 +710,7 @@ schedule_ue_spec(module_id_t module_idP,slice_id_t slice_idP,
LOG_D(MAC, "[eNB] Cannot find eNB_UE_stats\n"); LOG_D(MAC, "[eNB] Cannot find eNB_UE_stats\n");
continue_flag = 1; continue_flag = 1;
} }
if (flexran_slice_member(UE_id, slice_idP) == 0) if (!ue_slice_membership(UE_id, slice_idP))
continue; continue;
if (continue_flag != 1) { if (continue_flag != 1) {
......
...@@ -4050,7 +4050,7 @@ uint16_t flexran_nb_rbs_allowed_slice(float rb_percentage, int total_rbs) ...@@ -4050,7 +4050,7 @@ uint16_t flexran_nb_rbs_allowed_slice(float rb_percentage, int total_rbs)
return (uint16_t) floor(rb_percentage * total_rbs); return (uint16_t) floor(rb_percentage * total_rbs);
} }
int flexran_slice_member(int UE_id, int slice_id) int ue_slice_membership(int UE_id, int slice_id)
{ {
if ((slice_id < 0) || (slice_id > n_active_slices)) if ((slice_id < 0) || (slice_id > n_active_slices))
LOG_W(MAC, "out of range slice id %d\n", slice_id); LOG_W(MAC, "out of range slice id %d\n", slice_id);
......
...@@ -1126,7 +1126,7 @@ schedule_ulsch_rnti(module_id_t module_idP, ...@@ -1126,7 +1126,7 @@ schedule_ulsch_rnti(module_id_t module_idP,
for (UE_id = UE_list->head_ul; UE_id >= 0; for (UE_id = UE_list->head_ul; UE_id >= 0;
UE_id = UE_list->next_ul[UE_id]) { UE_id = UE_list->next_ul[UE_id]) {
if (flexran_slice_member(UE_id, slice_id) == 0) if (!ue_slice_membership(UE_id, slice_id))
continue; continue;
// don't schedule if Msg4 is not received yet // don't schedule if Msg4 is not received yet
......
...@@ -107,7 +107,7 @@ store_dlsch_buffer(module_id_t Mod_id, slice_id_t slice_id, frame_t frameP, ...@@ -107,7 +107,7 @@ store_dlsch_buffer(module_id_t Mod_id, slice_id_t slice_id, frame_t frameP,
if (UE_list->active[UE_id] != TRUE) if (UE_list->active[UE_id] != TRUE)
continue; continue;
if (flexran_slice_member(UE_id, slice_id) == 0) if (!ue_slice_membership(UE_id, slice_id))
continue; continue;
UE_template = UE_template =
...@@ -201,7 +201,7 @@ assign_rbs_required(module_id_t Mod_id, ...@@ -201,7 +201,7 @@ assign_rbs_required(module_id_t Mod_id,
for (UE_id = 0; UE_id < NUMBER_OF_UE_MAX; UE_id++) { for (UE_id = 0; UE_id < NUMBER_OF_UE_MAX; UE_id++) {
if (UE_list->active[UE_id] != TRUE) if (UE_list->active[UE_id] != TRUE)
continue; continue;
if (flexran_slice_member(UE_id, slice_id) == 0) if (!ue_slice_membership(UE_id, slice_id))
continue; continue;
pCCid = UE_PCCID(Mod_id, UE_id); pCCid = UE_PCCID(Mod_id, UE_id);
...@@ -610,7 +610,7 @@ dlsch_scheduler_pre_processor(module_id_t Mod_id, ...@@ -610,7 +610,7 @@ dlsch_scheduler_pre_processor(module_id_t Mod_id,
if (UE_list->active[i] != TRUE) if (UE_list->active[i] != TRUE)
continue; continue;
if (!flexran_slice_member(i, slice_id)) if (!ue_slice_membership(i, slice_id))
continue; continue;
UE_id = i; UE_id = i;
...@@ -659,7 +659,7 @@ dlsch_scheduler_pre_processor(module_id_t Mod_id, ...@@ -659,7 +659,7 @@ dlsch_scheduler_pre_processor(module_id_t Mod_id,
if (UE_list->UE_sched_ctrl[i].ul_out_of_sync == 1) if (UE_list->UE_sched_ctrl[i].ul_out_of_sync == 1)
continue; continue;
UE_id = i; UE_id = i;
if (flexran_slice_member(UE_id, slice_id) == 0) if (!ue_slice_membership(UE_id, slice_id))
continue; continue;
for (ii = 0; ii < UE_num_active_CC(UE_list, UE_id); ii++) { for (ii = 0; ii < UE_num_active_CC(UE_list, UE_id); ii++) {
...@@ -698,7 +698,7 @@ dlsch_scheduler_pre_processor(module_id_t Mod_id, ...@@ -698,7 +698,7 @@ dlsch_scheduler_pre_processor(module_id_t Mod_id,
if (UE_list->UE_sched_ctrl[i].ul_out_of_sync == 1) if (UE_list->UE_sched_ctrl[i].ul_out_of_sync == 1)
continue; continue;
UE_id = i; UE_id = i;
if (flexran_slice_member(UE_id, slice_id) == 0) if (!ue_slice_membership(UE_id, slice_id))
continue; continue;
for (ii = 0; ii < UE_num_active_CC(UE_list, UE_id); ii++) { for (ii = 0; ii < UE_num_active_CC(UE_list, UE_id); ii++) {
...@@ -743,7 +743,7 @@ dlsch_scheduler_pre_processor(module_id_t Mod_id, ...@@ -743,7 +743,7 @@ dlsch_scheduler_pre_processor(module_id_t Mod_id,
continue; continue;
if (UE_list->UE_sched_ctrl[i].ul_out_of_sync == 1) if (UE_list->UE_sched_ctrl[i].ul_out_of_sync == 1)
continue; continue;
if (flexran_slice_member(i, slice_id) == 0) if (!ue_slice_membership(i, slice_id))
continue; continue;
for (ii = 0; ii < UE_num_active_CC(UE_list, i); ii++) { for (ii = 0; ii < UE_num_active_CC(UE_list, i); ii++) {
...@@ -820,7 +820,7 @@ dlsch_scheduler_pre_processor(module_id_t Mod_id, ...@@ -820,7 +820,7 @@ dlsch_scheduler_pre_processor(module_id_t Mod_id,
continue; continue;
if (UE_list->UE_sched_ctrl[UE_id].ul_out_of_sync == 1) if (UE_list->UE_sched_ctrl[UE_id].ul_out_of_sync == 1)
continue; continue;
if (flexran_slice_member(i, slice_id) == 0) if (!ue_slice_membership(i, slice_id))
continue; continue;
transmission_mode = get_tmode(Mod_id, CC_id, UE_id); transmission_mode = get_tmode(Mod_id, CC_id, UE_id);
...@@ -1409,7 +1409,7 @@ ulsch_scheduler_pre_processor(module_id_t module_idP, ...@@ -1409,7 +1409,7 @@ ulsch_scheduler_pre_processor(module_id_t module_idP,
// This is the actual CC_id in the list // This is the actual CC_id in the list
CC_id = UE_list->ordered_ULCCids[n][i]; CC_id = UE_list->ordered_ULCCids[n][i];
UE_template = &UE_list->UE_template[CC_id][i]; UE_template = &UE_list->UE_template[CC_id][i];
if (flexran_slice_member(i, slice_id) == 0) if (!ue_slice_membership(i, slice_id))
continue; continue;
if (UE_template->pre_allocated_nb_rb_ul[slice_id] > 0) { if (UE_template->pre_allocated_nb_rb_ul[slice_id] > 0) {
total_ue_count[CC_id] += 1; total_ue_count[CC_id] += 1;
...@@ -1430,7 +1430,7 @@ ulsch_scheduler_pre_processor(module_id_t module_idP, ...@@ -1430,7 +1430,7 @@ ulsch_scheduler_pre_processor(module_id_t module_idP,
if (UE_list->UE_sched_ctrl[i].ul_out_of_sync == 1) if (UE_list->UE_sched_ctrl[i].ul_out_of_sync == 1)
continue; continue;
if (flexran_slice_member(UE_id, slice_id) == 0) if (!ue_slice_membership(UE_id, slice_id))
continue; continue;
LOG_D(MAC, "In ulsch_preprocessor: handling UE %d/%x\n", UE_id, LOG_D(MAC, "In ulsch_preprocessor: handling UE %d/%x\n", UE_id,
...@@ -1482,7 +1482,7 @@ ulsch_scheduler_pre_processor(module_id_t module_idP, ...@@ -1482,7 +1482,7 @@ ulsch_scheduler_pre_processor(module_id_t module_idP,
continue; continue;
if (UE_list->UE_sched_ctrl[i].ul_out_of_sync == 1) if (UE_list->UE_sched_ctrl[i].ul_out_of_sync == 1)
continue; continue;
if (flexran_slice_member(i, slice_id) == 0) if (!ue_slice_membership(i, slice_id))
continue; continue;
...@@ -1523,7 +1523,7 @@ ulsch_scheduler_pre_processor(module_id_t module_idP, ...@@ -1523,7 +1523,7 @@ ulsch_scheduler_pre_processor(module_id_t module_idP,
continue; continue;
if (UE_list->UE_sched_ctrl[i].ul_out_of_sync == 1) if (UE_list->UE_sched_ctrl[i].ul_out_of_sync == 1)
continue; continue;
if (flexran_slice_member(i, slice_id) == 0) if (!ue_slice_membership(i, slice_id))
continue; continue;
UE_id = i; UE_id = i;
...@@ -1605,7 +1605,7 @@ assign_max_mcs_min_rb(module_id_t module_idP, int slice_id, int frameP, ...@@ -1605,7 +1605,7 @@ assign_max_mcs_min_rb(module_id_t module_idP, int slice_id, int frameP,
continue; continue;
if (UE_list->UE_sched_ctrl[i].ul_out_of_sync == 1) if (UE_list->UE_sched_ctrl[i].ul_out_of_sync == 1)
continue; continue;
if (flexran_slice_member(i, slice_id) == 0) if (!ue_slice_membership(i, slice_id))
continue; continue;
if (UE_list->UE_sched_ctrl[i].phr_received == 1) if (UE_list->UE_sched_ctrl[i].phr_received == 1)
......
...@@ -1197,7 +1197,7 @@ int l2_init_ue(int eMBMS_active, char *uecap_xer, uint8_t cba_group_active, ...@@ -1197,7 +1197,7 @@ int l2_init_ue(int eMBMS_active, char *uecap_xer, uint8_t cba_group_active,
/*Slice related functions */ /*Slice related functions */
uint16_t flexran_nb_rbs_allowed_slice(float rb_percentage, int total_rbs); uint16_t flexran_nb_rbs_allowed_slice(float rb_percentage, int total_rbs);
int flexran_slice_member(int UE_id, int slice_id); int ue_slice_membership(int UE_id, int slice_id);
#endif #endif
/** @}*/ /** @}*/
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment