F1AP: RLC mode: introduce separate type
The currently used type does not cover all possibilities. While we don't encode&decode them, it might still be good to be able to express it, so introduce the new type. Co-authored-by: Guido Casati <hello@guidocasati.com>
This commit is contained in:
committed by
Guido Casati
co-authored by
Guido Casati
parent
da6b1a4be4
commit
ea28b9bb5b
@@ -483,12 +483,15 @@ int CU_send_UE_CONTEXT_SETUP_REQUEST(sctp_assoc_t assoc_id, f1ap_ue_context_setu
|
||||
/* 12.1.4 rLCMode */
|
||||
/* TODO use rlc_mode from f1ap_drb_to_be_setup */
|
||||
switch (f1ap_ue_context_setup_req->drbs_to_be_setup[i].rlc_mode) {
|
||||
case RLC_MODE_AM:
|
||||
case F1AP_RLC_MODE_AM:
|
||||
drbs_toBeSetup_item->rLCMode = F1AP_RLCMode_rlc_am;
|
||||
break;
|
||||
|
||||
default:
|
||||
case F1AP_RLC_MODE_UM_BIDIR:
|
||||
drbs_toBeSetup_item->rLCMode = F1AP_RLCMode_rlc_um_bidirectional;
|
||||
break;
|
||||
default:
|
||||
AssertFatal(false, "modes other than AM/UM-Bidir not supported\n");
|
||||
break;
|
||||
}
|
||||
|
||||
/* OPTIONAL */
|
||||
@@ -1218,12 +1221,15 @@ int CU_send_UE_CONTEXT_MODIFICATION_REQUEST(sctp_assoc_t assoc_id, f1ap_ue_conte
|
||||
/* 12.1.4 rLCMode */
|
||||
/* TODO use rlc_mode from f1ap_drb_to_be_setup */
|
||||
switch (f1ap_ue_context_modification_req->drbs_to_be_setup[i].rlc_mode) {
|
||||
case RLC_MODE_AM:
|
||||
case F1AP_RLC_MODE_AM:
|
||||
drbs_toBeSetupMod_item->rLCMode = F1AP_RLCMode_rlc_am;
|
||||
break;
|
||||
|
||||
default:
|
||||
case F1AP_RLC_MODE_UM_BIDIR:
|
||||
drbs_toBeSetupMod_item->rLCMode = F1AP_RLCMode_rlc_um_bidirectional;
|
||||
break;
|
||||
default:
|
||||
AssertFatal(false, "modes other than AM/UM-Bidir not supported\n");
|
||||
break;
|
||||
}
|
||||
|
||||
/* OPTIONAL */
|
||||
|
||||
@@ -209,11 +209,14 @@ int DU_handle_UE_CONTEXT_SETUP_REQUEST(instance_t instance, sctp_assoc_t assoc_i
|
||||
|
||||
switch (drbs_tobesetup_item_p->rLCMode) {
|
||||
case F1AP_RLCMode_rlc_am:
|
||||
drb_p->rlc_mode = RLC_MODE_AM;
|
||||
drb_p->rlc_mode = F1AP_RLC_MODE_AM;
|
||||
break;
|
||||
case F1AP_RLCMode_rlc_um_bidirectional:
|
||||
drb_p->rlc_mode = F1AP_RLC_MODE_UM_BIDIR;
|
||||
break;
|
||||
|
||||
default:
|
||||
drb_p->rlc_mode = RLC_MODE_TM;
|
||||
LOG_W(F1AP, "unsupported RLC Mode %ld received: setting UM bidir\n", drbs_tobesetup_item_p->rLCMode);
|
||||
drb_p->rlc_mode = F1AP_RLC_MODE_UM_BIDIR;
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -930,13 +933,16 @@ int DU_handle_UE_CONTEXT_MODIFICATION_REQUEST(instance_t instance, sctp_assoc_t
|
||||
drb_p->up_ul_tnl[0].port = getCxt(instance)->net_config.CUport;
|
||||
|
||||
switch (drbs_tobesetupmod_item_p->rLCMode) {
|
||||
case F1AP_RLCMode_rlc_am:
|
||||
drb_p->rlc_mode = RLC_MODE_AM;
|
||||
break;
|
||||
|
||||
default:
|
||||
drb_p->rlc_mode = RLC_MODE_TM;
|
||||
break;
|
||||
case F1AP_RLCMode_rlc_am:
|
||||
drb_p->rlc_mode = F1AP_RLC_MODE_AM;
|
||||
break;
|
||||
case F1AP_RLCMode_rlc_um_bidirectional:
|
||||
drb_p->rlc_mode = F1AP_RLC_MODE_UM_BIDIR;
|
||||
break;
|
||||
default:
|
||||
LOG_W(F1AP, "unsupported RLC Mode %ld received: setting UM bidir\n", drbs_tobesetupmod_item_p->rLCMode);
|
||||
drb_p->rlc_mode = F1AP_RLC_MODE_UM_BIDIR;
|
||||
break;
|
||||
}
|
||||
|
||||
if (drbs_tobesetupmod_item_p->qoSInformation.present == F1AP_QoSInformation_PR_eUTRANQoS) {
|
||||
|
||||
Reference in New Issue
Block a user