X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fdu_app%2Fdu_mgr_ex_ms.c;h=3fd9495a456eb364963487258d4c7c0359acaa3d;hb=0a26c487f1b6bbb5217e47b15fa8273b2e749283;hp=42c173d1912942e0fd7351eae559a6becdeb89a0;hpb=5831bf6b3454aa200a92cd3e84209650734e4863;p=o-du%2Fl2.git diff --git a/src/du_app/du_mgr_ex_ms.c b/src/du_app/du_mgr_ex_ms.c index 42c173d19..3fd9495a4 100644 --- a/src/du_app/du_mgr_ex_ms.c +++ b/src/du_app/du_mgr_ex_ms.c @@ -40,11 +40,11 @@ #include "du_ue_mgr.h" #include "du_utils.h" -extern S16 unpackRlcConfigCfm(RlcConfigCfm func,Pst *pst, Buffer *mBuf); -extern S16 cmUnpkLkwCntrlCfm(LkwCntrlCfm func,Pst *pst, Buffer *mBuf); -extern S16 cmUnpkLrgCfgCfm(LrgCfgCfm func,Pst *pst, Buffer *mBuf); +extern uint8_t unpackRlcConfigCfm(RlcConfigCfm func,Pst *pst, Buffer *mBuf); +extern uint8_t cmUnpkLkwCntrlCfm(LkwCntrlCfm func,Pst *pst, Buffer *mBuf); +extern uint8_t cmUnpkLrgCfgCfm(LrgCfgCfm func,Pst *pst, Buffer *mBuf); extern uint8_t cmUnpkKwuDatInd(KwuDatInd func,Pst *pst, Buffer *mBuf); -extern S16 cmUnpkLrgSchCfgCfm(LrgSchCfgCfm func,Pst *pst,Buffer *mBuf); +extern uint8_t cmUnpkLrgSchCfgCfm(LrgSchCfgCfm func,Pst *pst,Buffer *mBuf); /************************************************************************** * @brief Task Initiation callback function. * @@ -65,7 +65,7 @@ extern S16 cmUnpkLrgSchCfgCfm(LrgSchCfgCfm func,Pst *pst,Buffer *mBuf); * @return ROK - success * RFAILED - failure ***************************************************************************/ -S16 duActvInit(Ent entity, Inst inst, Region region, Reason reason) +uint8_t duActvInit(Ent entity, Inst inst, Region region, Reason reason) { uint8_t id; @@ -97,7 +97,7 @@ S16 duActvInit(Ent entity, Inst inst, Region region, Reason reason) duCb.numCfgCells = 0; duCb.numActvCells = 0; - SSetProcId(DU_PROC); + ODU_SET_PROC_ID(DU_PROC); return ROK; @@ -123,9 +123,9 @@ S16 duActvInit(Ent entity, Inst inst, Region region, Reason reason) * RFAILED - failure * ***************************************************************************/ -S16 duActvTsk(Pst *pst, Buffer *mBuf) +uint8_t duActvTsk(Pst *pst, Buffer *mBuf) { - S16 ret = ROK; + uint8_t ret = ROK; switch(pst->srcEnt) { @@ -137,20 +137,20 @@ S16 duActvTsk(Pst *pst, Buffer *mBuf) { DU_LOG("\n****** Received initial configs at DU APP ******\n"); duProcCfgComplete(); - SPutMsg(mBuf); + ODU_PUT_MSG(mBuf); break; } default: { DU_LOG("\nDU_APP : Invalid event received at duActvTsk from ENTDUAPP"); - SPutMsg(mBuf); + ODU_PUT_MSG(mBuf); ret = RFAILED; } } break; } - case ENTKW: + case ENTRLC: { switch(pst->event) { @@ -178,24 +178,29 @@ S16 duActvTsk(Pst *pst, Buffer *mBuf) ret = unpackRlcUlUeCreateRsp(DuProcRlcUlUeCreateRsp, pst, mBuf); break; } + case EVENT_UL_RRC_MSG_TRANS_TO_DU: + { + ret = unpackRlcUlRrcMsgToDu(DuProcRlcUlRrcMsgTrans, pst, mBuf); + break; + } default: { - DU_LOG("\nDU_APP : Invalid event %d received at duActvTsk from ENTKW", \ + DU_LOG("\nDU_APP : Invalid event %d received at duActvTsk from ENTRLC", \ pst->event); - SPutMsg(mBuf); + ODU_PUT_MSG(mBuf); ret = RFAILED; } } break; } - case ENTRG: + case ENTMAC: { switch(pst->event) { //Config complete case EVTCFG: { - SPutMsg(mBuf); + ODU_PUT_MSG(mBuf); break; } case EVTLRGCFGCFM: @@ -240,8 +245,8 @@ S16 duActvTsk(Pst *pst, Buffer *mBuf) default: { - DU_LOG("\nDU_APP : Invalid event received at duActvTsk from ENTRG"); - SPutMsg(mBuf); + DU_LOG("\nDU_APP : Invalid event received at duActvTsk from ENTMAC"); + ODU_PUT_MSG(mBuf); ret = RFAILED; } } @@ -274,7 +279,7 @@ S16 duActvTsk(Pst *pst, Buffer *mBuf) } } - SPutMsg(mBuf); + ODU_PUT_MSG(mBuf); break; } case ENTEGTP: @@ -302,18 +307,18 @@ S16 duActvTsk(Pst *pst, Buffer *mBuf) ret = RFAILED; } } - SPutMsg(mBuf); + ODU_PUT_MSG(mBuf); break; } default: { DU_LOG("\nDU_APP : DU APP can not process message from Entity %d", pst->srcEnt); - SPutMsg(mBuf); + ODU_PUT_MSG(mBuf); ret = RFAILED; } } - SExitTsk(); + ODU_EXIT_TASK(); return ret; }