From: barveankit Date: Thu, 30 Dec 2021 18:27:02 +0000 (+0530) Subject: Renaming UE IDX to UE ID (Leftover fixes) [Issue-ID: ODUHIGH-401] X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=o-du%2Fl2.git;a=commitdiff_plain;h=88debac51779b5de4f38e60e9a26f3015091d91b Renaming UE IDX to UE ID (Leftover fixes) [Issue-ID: ODUHIGH-401] Signed-off-by: barveankit Change-Id: I6bb1fc52a8d0fd971e47d0ed3b7a5f60cce5b674 --- diff --git a/src/5gnrmac/mac.h b/src/5gnrmac/mac.h index a9acee322..dd76975c4 100644 --- a/src/5gnrmac/mac.h +++ b/src/5gnrmac/mac.h @@ -204,7 +204,7 @@ typedef struct ueDlCb /* UE Cb */ typedef struct macUeCb { - uint16_t ueIdx; /* UE Idx assigned by DU APP */ + uint16_t ueId; /* UE Id assigned by DU APP */ uint16_t crnti; /* UE CRNTI */ MacCellCb *cellCb; /* Pointer to cellCb to whihc this UE belongs */ UeState state; /* Is UE active ? */ diff --git a/src/5gnrmac/mac_ue_mgr.c b/src/5gnrmac/mac_ue_mgr.c index e34fe86c5..1a7a9d43a 100644 --- a/src/5gnrmac/mac_ue_mgr.c +++ b/src/5gnrmac/mac_ue_mgr.c @@ -1985,7 +1985,7 @@ uint8_t fillMacUeCb(MacUeCb *ueCb, MacUeCfg *ueCfg, uint8_t cellIdx) { uint8_t ret = ROK; - ueCb->ueIdx = ueCfg->ueId; + ueCb->ueId = ueCfg->ueId; ueCb->crnti = ueCfg->crnti; ueCb->cellCb = macCb.macCell[cellIdx]; if(ueCfg->spCellCfgPres) @@ -2099,7 +2099,7 @@ uint8_t createUeCb(uint8_t cellIdx, MacUeCb *ueCb, MacUeCfg *ueCfg) { uint8_t ret =ROK; - if((ueCb->ueIdx == ueCfg->ueId) && (ueCb->crnti == ueCfg->crnti)\ + if((ueCb->ueId == ueCfg->ueId) && (ueCb->crnti == ueCfg->crnti)\ &&(ueCb->state == UE_STATE_ACTIVE)) { DU_LOG("\nERROR --> MAC : CRNTI %d already configured ", ueCfg->crnti); @@ -2144,7 +2144,7 @@ uint8_t modifyUeCb(uint8_t cellIdx, MacUeCb *ueCb, MacUeCfg *ueCfg) { uint8_t ret = ROK; - if((ueCb->ueIdx == ueCfg->ueId) && (ueCb->crnti == ueCfg->crnti)\ + if((ueCb->ueId == ueCfg->ueId) && (ueCb->crnti == ueCfg->crnti)\ &&(ueCb->state == UE_STATE_ACTIVE)) { DU_LOG("\nINFO --> MAC : Modifying Ue config Req for CRNTI %d ", ueCfg->crnti); @@ -2405,19 +2405,19 @@ uint8_t MacSendUeReconfigRsp(MacRsp result, SchUeCfgRsp *schCfgRsp) * Functionality: * Function to return Mac Ue Cfg pointer * - * @params[in] cellIdx, ueIdx + * @params[in] cellIdx, ueId * * @return MacUeCfg pointer - success * NULLP - failure * * ****************************************************************/ -MacUeCfg *getMacUeCfg(uint16_t cellIdx, uint8_t ueIdx) +MacUeCfg *getMacUeCfg(uint16_t cellIdx, uint8_t ueId) { MacUeCfg *ueCfg = NULLP; if(macCb.macCell[cellIdx]) { - ueCfg = macCb.macCell[cellIdx]->ueCfgTmpData[ueIdx-1]; + ueCfg = macCb.macCell[cellIdx]->ueCfgTmpData[ueId-1]; } else { @@ -2719,7 +2719,7 @@ uint8_t MacProcSchUeDeleteRsp(Pst *pst, SchUeDeleteRsp *schUeDelRsp) { /*C-RNTI value is out of Acceptable range*/ DU_LOG("\nERROR --> MAC : MacProcSchUeDeleteRsp(): Invalid crnti[%d] ",schUeDelRsp->crnti); - result = UEIDX_INVALID; + result = UEID_INVALID; } else { @@ -2747,7 +2747,7 @@ uint8_t MacProcSchUeDeleteRsp(Pst *pst, SchUeDeleteRsp *schUeDelRsp) else { DU_LOG("\nERROR --> MAC : MacProcSchUeDeleteRsp(): crnti[%d] does not exist ",schUeDelRsp->crnti); - result = UEIDX_INVALID; + result = UEID_INVALID; } } } @@ -2759,7 +2759,7 @@ uint8_t MacProcSchUeDeleteRsp(Pst *pst, SchUeDeleteRsp *schUeDelRsp) } else { - result = (schUeDelRsp->cause == INVALID_CELLID) ? CELLID_INVALID : UEIDX_INVALID; + result = (schUeDelRsp->cause == INVALID_CELLID) ? CELLID_INVALID : UEID_INVALID; } if(MacSendUeDeleteRsp(schUeDelRsp->cellId, schUeDelRsp->crnti, result) != ROK) { @@ -2857,12 +2857,12 @@ uint8_t MacProcUeDeleteReq(Pst *pst, MacUeDelete *ueDelete) else { DU_LOG("\nERROR --> MAC : MacProcUeDeleteReq(): CRNTI is not matched"); - result = UEIDX_INVALID; + result = UEID_INVALID; } } else { - DU_LOG("\nERROR --> MAC : MacProcUeDeleteReq(): Failed to find the MacUeCb of UeIdx = %d",ueDelete->ueId); + DU_LOG("\nERROR --> MAC : MacProcUeDeleteReq(): Failed to find the MacUeCb of UeId = %d",ueDelete->ueId); result = CELLID_INVALID; } diff --git a/src/5gnrrlc/rlc_dl_ul_inf_dl.c b/src/5gnrrlc/rlc_dl_ul_inf_dl.c index 77f652d33..1f14545e9 100755 --- a/src/5gnrrlc/rlc_dl_ul_inf_dl.c +++ b/src/5gnrrlc/rlc_dl_ul_inf_dl.c @@ -347,7 +347,7 @@ RlcCfgInfo *cfg } else { - DU_LOG("\nDEBUG --> RLC_DL: UE information is deleted for UEIdx[%d] and CellId[%d]",\ + DU_LOG("\nDEBUG --> RLC_DL: UE information is deleted for UEId[%d] and CellId[%d]",\ cfg->ueId, cfg->cellId); } break; diff --git a/src/5gnrrlc/rlc_msg_hdl.c b/src/5gnrrlc/rlc_msg_hdl.c index af317369a..6e90eca3e 100644 --- a/src/5gnrrlc/rlc_msg_hdl.c +++ b/src/5gnrrlc/rlc_msg_hdl.c @@ -707,7 +707,7 @@ uint8_t RlcProcUeReconfigReq(Pst *pst, RlcUeCfg *ueCfg) RlcCfgCfmInfo *cfgRsp; Pst rspPst; - DU_LOG("\nDEBUG --> RLC: UE reconfig request received. CellID[%d] UEIDX[%d]",ueCfg->cellId, ueCfg->ueId); + DU_LOG("\nDEBUG --> RLC: UE reconfig request received. CellID[%d] UEID[%d]",ueCfg->cellId, ueCfg->ueId); rlcUeCb = RLC_GET_RLCCB(pst->dstInst); RLC_ALLOC(rlcUeCb, rlcUeCfg, sizeof(RlcCfgInfo)); diff --git a/src/5gnrsch/sch.c b/src/5gnrsch/sch.c index d5580faf1..fc845eb1d 100644 --- a/src/5gnrsch/sch.c +++ b/src/5gnrsch/sch.c @@ -1443,7 +1443,7 @@ uint8_t addUeToBeScheduled(SchCellCb *cell, uint8_t ueIdToAdd) *ueId = ueIdToAdd; if(addNodeToLList(&cell->ueToBeScheduled, ueId, NULLP) != ROK) { - DU_LOG("\nERROR --> SCH : Failed to add UeIdx to cell->ueToBeScheduled list"); + DU_LOG("\nERROR --> SCH : Failed to add ueId [%d] to cell->ueToBeScheduled list", *ueId); return RFAILED; } return ROK; diff --git a/src/5gnrsch/sch_ue_mgr.c b/src/5gnrsch/sch_ue_mgr.c index 2e411cbe7..91d53589c 100644 --- a/src/5gnrsch/sch_ue_mgr.c +++ b/src/5gnrsch/sch_ue_mgr.c @@ -1052,7 +1052,7 @@ uint8_t MacSchUeDeleteReq(Pst *pst, SchUeDelete *ueDelete) else { DU_LOG("\nERROR --> SCH : MacSchUeDeleteReq(): SchUeCb not found"); - result = INVALID_UEIDX; + result = INVALID_UEID; } } diff --git a/src/cm/common_def.h b/src/cm/common_def.h index 2346187d9..c70920486 100644 --- a/src/cm/common_def.h +++ b/src/cm/common_def.h @@ -144,20 +144,14 @@ #define MAX_TDD_PERIODICITY_SLOTS 160 #endif -/* TODO : Delete GET_UE_IDX once replaced with GET_UE_ID at all places */ -#define GET_UE_IDX( _crnti,_ueIdx) \ -{ \ - _ueIdx = _crnti - ODU_START_CRNTI + 1; \ -} - #define GET_UE_ID( _crnti,_ueId) \ { \ _ueId = _crnti - ODU_START_CRNTI + 1; \ } -#define GET_CRNTI( _crnti,_ueIdx) \ +#define GET_CRNTI( _crnti, _ueId) \ { \ - _crnti = _ueIdx + ODU_START_CRNTI - 1; \ + _crnti = _ueId + ODU_START_CRNTI - 1; \ } /* Calculates cellIdx from cellId */ diff --git a/src/cm/du_app_mac_inf.h b/src/cm/du_app_mac_inf.h index c701c9562..a0d81ec0f 100644 --- a/src/cm/du_app_mac_inf.h +++ b/src/cm/du_app_mac_inf.h @@ -100,7 +100,7 @@ typedef enum { SUCCESS, CELLID_INVALID, - UEIDX_INVALID + UEID_INVALID }UeDeleteStatus; typedef enum diff --git a/src/cm/mac_sch_interface.h b/src/cm/mac_sch_interface.h index 860389197..2f1e83db0 100644 --- a/src/cm/mac_sch_interface.h +++ b/src/cm/mac_sch_interface.h @@ -166,7 +166,7 @@ typedef enum { NOT_APPLICABLE, INVALID_CELLID, - INVALID_UEIDX + INVALID_UEID }ErrorCause; typedef enum diff --git a/src/du_app/du_ue_mgr.c b/src/du_app/du_ue_mgr.c index 45b666ac9..8a60ade43 100644 --- a/src/du_app/du_ue_mgr.c +++ b/src/du_app/du_ue_mgr.c @@ -2353,7 +2353,7 @@ uint8_t DuProcMacUeCfgRsp(Pst *pst, MacUeCfgRsp *cfgRsp) * Processes UE create Req to RLC UL * * @params[in] cellId, - * ueIdx, + * ueId, * Pointer to RlcUeCfg * @return ROK - success * RFAILED - failure diff --git a/src/phy_stub/phy_stub_msg_hdl.c b/src/phy_stub/phy_stub_msg_hdl.c index 79d973f0d..f9b0eb3ee 100644 --- a/src/phy_stub/phy_stub_msg_hdl.c +++ b/src/phy_stub/phy_stub_msg_hdl.c @@ -349,7 +349,7 @@ uint16_t l1BuildAndSendRxDataInd(uint16_t slot, uint16_t sfn, fapi_ul_pusch_pdu_ uint32_t msgLen = 0; MsgType type = 0; - GET_UE_IDX(puschPdu.rnti, ueId); + GET_UE_ID(puschPdu.rnti, ueId); if(!ueDb.ueCb[ueId-1].msg3Sent) { ueDb.ueCb[ueId-1].ueId = ueId; diff --git a/src/phy_stub/phy_stub_thread_hdl.c b/src/phy_stub/phy_stub_thread_hdl.c index b26e50454..a622c76d6 100644 --- a/src/phy_stub/phy_stub_thread_hdl.c +++ b/src/phy_stub/phy_stub_thread_hdl.c @@ -162,7 +162,7 @@ void *l1ConsoleHandler(void *args) { for(drbIdx = 0; drbIdx < NUM_DRB_TO_PUMP_DATA; drbIdx++) //Number of DRB times the loop will run { - DU_LOG("\nDEBUG --> PHY STUB: Sending UL User Data[DrbId:%d] for UEId %d\n",drbIdx,ueIdx); + DU_LOG("\nDEBUG --> PHY STUB: Sending UL User Data[DrbId:%d] for UEIdx %d\n",drbIdx,ueIdx); l1SendUlUserData(drbIdx,ueIdx); /* TODO :- sleep(1) will be removed once we will be able to * send continuous data packet */