Code Review
/
o-du
/
l2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix for memory leak in UL data path at cu_stub [Issue-ID: ODUHIGH-398]
[o-du/l2.git]
/
src
/
du_app
/
du_cell_mgr.c
diff --git
a/src/du_app/du_cell_mgr.c
b/src/du_app/du_cell_mgr.c
index
6c4b888
..
cb7439d
100644
(file)
--- a/
src/du_app/du_cell_mgr.c
+++ b/
src/du_app/du_cell_mgr.c
@@
-34,7
+34,7
@@
#ifdef O1_ENABLE
#include "AlarmInterface.h"
#ifdef O1_ENABLE
#include "AlarmInterface.h"
-#include "C
onfig
Interface.h"
+#include "C
m
Interface.h"
#endif
#endif
@@
-173,8
+173,8
@@
uint8_t duGetCellCb(uint16_t cellId, DuCellCb **cellCb)
* ****************************************************************/
uint8_t duHandleCellUpInd(Pst *pst, OduCellId *cellId)
{
* ****************************************************************/
uint8_t duHandleCellUpInd(Pst *pst, OduCellId *cellId)
{
- DuCellCb *cellCb = NULLP;
-
+ DuCellCb *cellCb = NULLP;
+
if(cellId->cellId <=0 || cellId->cellId > MAX_NUM_CELL)
{
DU_LOG("\nERROR --> DU APP : Invalid Cell Id %d in duHandleCellUpInd()", cellId->cellId);
if(cellId->cellId <=0 || cellId->cellId > MAX_NUM_CELL)
{
DU_LOG("\nERROR --> DU APP : Invalid Cell Id %d in duHandleCellUpInd()", cellId->cellId);
@@
-189,7
+189,9
@@
uint8_t duHandleCellUpInd(Pst *pst, OduCellId *cellId)
DU_LOG("\nINFO --> DU APP : 5G-NR Cell %d is UP", cellId->cellId);
cellCb->cellStatus = ACTIVATED;
gCellStatus = CELL_UP;
DU_LOG("\nINFO --> DU APP : 5G-NR Cell %d is UP", cellId->cellId);
cellCb->cellStatus = ACTIVATED;
gCellStatus = CELL_UP;
-
+
+ if(duCfgParam.tempSliceCfg.rrmPolicy)
+ BuildAndSendSliceConfigReq(duCfgParam.tempSliceCfg.rrmPolicy, duCfgParam.tempSliceCfg.totalRrmPolicy, duCfgParam.tempSliceCfg.totalSliceCount);
#ifdef O1_ENABLE
DU_LOG("\nINFO --> DU APP : Raise cell UP alarm for cell id=%d", cellId->cellId);
raiseCellAlrm(CELL_UP_ALARM_ID, cellId->cellId);
#ifdef O1_ENABLE
DU_LOG("\nINFO --> DU APP : Raise cell UP alarm for cell id=%d", cellId->cellId);
raiseCellAlrm(CELL_UP_ALARM_ID, cellId->cellId);
@@
-222,6
+224,7
@@
uint8_t DuProcMacCellDeleteRsp(Pst *pst, MacCellDeleteRsp *deleteRsp)
{
uint8_t ret = ROK;
uint16_t cellIdx=0;
{
uint8_t ret = ROK;
uint16_t cellIdx=0;
+
if(deleteRsp)
{
if(deleteRsp->result == SUCCESSFUL_RSP)
if(deleteRsp)
{
if(deleteRsp->result == SUCCESSFUL_RSP)
@@
-242,6
+245,7
@@
uint8_t DuProcMacCellDeleteRsp(Pst *pst, MacCellDeleteRsp *deleteRsp)
duCb.numActvCells--;
duCb.numCfgCells--;
DU_FREE(duCb.actvCellLst[cellIdx], sizeof(DuCellCb));
duCb.numActvCells--;
duCb.numCfgCells--;
DU_FREE(duCb.actvCellLst[cellIdx], sizeof(DuCellCb));
+
}
else
{
}
else
{
@@
-354,13
+358,6
@@
uint8_t duSendCellDeletReq(uint16_t cellId)
return RFAILED;
}
return RFAILED;
}
- if(duCb.actvCellLst[cellIdx]->numActvUes)
- {
- DU_LOG("\nERROR --> DU APP : duSendCellDeletReq(): Active UEs still present in cellId[%d].\
- Failed to delete cell", cellId);
- return RFAILED;
- }
-
if(duBuildAndSendMacCellStop(cellId) == RFAILED)
{
DU_LOG("\nERROR --> DU APP : duSendCellDeletReq(): Failed to build and send cell stop request to MAC for\
if(duBuildAndSendMacCellStop(cellId) == RFAILED)
{
DU_LOG("\nERROR --> DU APP : duSendCellDeletReq(): Failed to build and send cell stop request to MAC for\