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
[Epic-ID: ODUHIGH-405][Task-ID: ODUHIGH-443] Contention Free RA by UE in handover
[o-du/l2.git]
/
src
/
5gnrsch
/
sch_utils.c
diff --git
a/src/5gnrsch/sch_utils.c
b/src/5gnrsch/sch_utils.c
index
668d0c2
..
0b65fb4
100644
(file)
--- a/
src/5gnrsch/sch_utils.c
+++ b/
src/5gnrsch/sch_utils.c
@@
-1143,9
+1143,9
@@
uint16_t schCalcTbSizeFromNPrb(uint16_t numPrb, uint16_t mcs, uint8_t numSymbols
**/
SchUeCb* schGetUeCb(SchCellCb *cellCb, uint16_t crnti)
{
**/
SchUeCb* schGetUeCb(SchCellCb *cellCb, uint16_t crnti)
{
- uint16_t ueId
x
;
- GET_UE_ID
X(crnti, ueIdx
);
- return &(cellCb->ueCb[ueId
x
-1]);
+ uint16_t ueId;
+ GET_UE_ID
(crnti, ueId
);
+ return &(cellCb->ueCb[ueId -1]);
}
/**
}
/**
@@
-1340,7
+1340,7
@@
bool fillPrbBitmap(uint64_t *prbBitMap, uint16_t startPrb, uint16_t numPrb)
* If NULLP, FATAL FAILURE
*
* ***********************************************************************/
* If NULLP, FATAL FAILURE
*
* ***********************************************************************/
-LcInfo* handleLcLList(CmLListCp *lcLL, uint8_t lcId, ActionTypeL
cL
L action)
+LcInfo* handleLcLList(CmLListCp *lcLL, uint8_t lcId, ActionTypeLL action)
{
CmLList *node = NULLP;
LcInfo *lcNode = NULLP;
{
CmLList *node = NULLP;
LcInfo *lcNode = NULLP;
@@
-1348,7
+1348,7
@@
LcInfo* handleLcLList(CmLListCp *lcLL, uint8_t lcId, ActionTypeLcLL action)
if(lcLL == NULLP)
{
if(lcLL == NULLP)
{
- DU_LOG("\nERROR
-->
SCH: LcList doesnt exist");
+ DU_LOG("\nERROR
-->
SCH: LcList doesnt exist");
return NULLP;
}
node = lcLL->first;
return NULLP;
}
node = lcLL->first;
@@
-1359,7
+1359,6
@@
LcInfo* handleLcLList(CmLListCp *lcLL, uint8_t lcId, ActionTypeLcLL action)
lcNode = (LcInfo *)node->node;
if(lcNode->lcId == lcId)
{
lcNode = (LcInfo *)node->node;
if(lcNode->lcId == lcId)
{
- DU_LOG("\nINFO --> SCH : LcID:%d found in LL",lcId);
found = TRUE;
break;
}
found = TRUE;
break;
}
@@
-1387,7
+1386,6
@@
LcInfo* handleLcLList(CmLListCp *lcLL, uint8_t lcId, ActionTypeLcLL action)
/*List is empty; Initialize the LL ControlPointer*/
if(lcLL->count == 0)
{
/*List is empty; Initialize the LL ControlPointer*/
if(lcLL->count == 0)
{
- DU_LOG("\nINFO --> SCH: First LC:%d to add in this List",lcId);
cmLListInit(lcLL);
}
cmLListInit(lcLL);
}
@@
-1403,17
+1401,16
@@
LcInfo* handleLcLList(CmLListCp *lcLL, uint8_t lcId, ActionTypeLcLL action)
}
else
{
}
else
{
- DU_LOG("\nERROR --> SCH : Allocation of List failed,lcId:%d",lcId);
+ DU_LOG("\nERROR -->
SCH : Allocation of List failed,lcId:%d",lcId);
return NULLP;
}
if(addNodeToLList(lcLL, lcNode, NULLP) == RFAILED)
{
return NULLP;
}
if(addNodeToLList(lcLL, lcNode, NULLP) == RFAILED)
{
- DU_LOG("\nERROR --> SCH : failed to Add Node,lcId:%d",lcId);
+ DU_LOG("\nERROR -->
SCH : failed to Add Node,lcId:%d",lcId);
SCH_FREE(lcNode, sizeof(LcInfo));
return NULLP;
}
SCH_FREE(lcNode, sizeof(LcInfo));
return NULLP;
}
- DU_LOG("\nINFO --> SCH : Added new Node in List for lcId:%d\n",lcId);
return lcNode;
}
return lcNode;
}
@@
-1421,20
+1418,25
@@
LcInfo* handleLcLList(CmLListCp *lcLL, uint8_t lcId, ActionTypeLcLL action)
{
if(!found || lcNode == NULLP)
{
{
if(!found || lcNode == NULLP)
{
- DU_LOG("\nERROR
--> SCH: LCID:
%d not found; thus Deletion unsuccessful",lcId);
+ DU_LOG("\nERROR
--> SCH: LCID
%d not found; thus Deletion unsuccessful",lcId);
}
else
{
if(deleteNodeFromLList(lcLL, node) == ROK)
SCH_FREE(lcNode, sizeof(LcInfo));
}
else
{
if(deleteNodeFromLList(lcLL, node) == ROK)
SCH_FREE(lcNode, sizeof(LcInfo));
- DU_LOG("\n
INFO --> SCH: LCID:
%d Deleted successfully",lcId);
+ DU_LOG("\n
DEBUG --> SCH: LCID
%d Deleted successfully",lcId);
}
return NULLP;
}
}
return NULLP;
}
+ case PRINT:
+ case TRAVERSE_ALL:
+ {
+ break;
+ }
default:
{
default:
{
- DU_LOG("\nERROR
-->
SCH: Action type wrong: %d",action);
+ DU_LOG("\nERROR
-->
SCH: Action type wrong: %d",action);
break;
}
}
break;
}
}
@@
-1468,13
+1470,12
@@
uint8_t updateLcListReqPRB(CmLListCp *lcLL, uint8_t lcId, uint32_t payloadSize)
if(lcNode == NULLP)
{
if(lcNode == NULLP)
{
- DU_LOG("\nERROR --> SCH : LC is neither present nor able to create in List lcId:%d",lcId);
+ DU_LOG("\nERROR -->
SCH : LC is neither present nor able to create in List lcId:%d",lcId);
return RFAILED;
}
lcNode->reqBO = payloadSize;
lcNode->allocBO = 0;
lcNode->allocPRB = 0; /*Re-Initializing the AllocPRB*/
return RFAILED;
}
lcNode->reqBO = payloadSize;
lcNode->allocBO = 0;
lcNode->allocPRB = 0; /*Re-Initializing the AllocPRB*/
- DU_LOG("\nINFO --> SCH : LCID:%d, reqBO:%d", lcId, lcNode->reqBO);
return ROK;
}
return ROK;
}
@@
-1501,7
+1502,7
@@
void deleteLcLL(CmLListCp *lcLL)
if(lcLL == NULLP)
{
if(lcLL == NULLP)
{
- DU_LOG("\n
INFO -->
SCH: LcList doesnt exist");
+ DU_LOG("\n
ERROR -->
SCH: LcList doesnt exist");
return;
}
node = lcLL->first;
return;
}
node = lcLL->first;
@@
-1589,7
+1590,7
@@
void printLcLL(CmLListCp *lcLL)
if(lcLL == NULLP)
{
if(lcLL == NULLP)
{
- DU_LOG("\nINFO
-->
SCH: LcList doesnt exist");
+ DU_LOG("\nINFO
-->
SCH: LcList doesnt exist");
return;
}
node = lcLL->first;
return;
}
node = lcLL->first;
@@
-1598,7
+1599,7
@@
void printLcLL(CmLListCp *lcLL)
lcNode = (LcInfo *)node->node;
if(lcNode)
{
lcNode = (LcInfo *)node->node;
if(lcNode)
{
- DU_LOG("\nINFO
-->
SCH : LcID:%d, [reqBO, allocBO, allocPRB]:[%d,%d,%d]",\
+ DU_LOG("\nINFO
-->
SCH : LcID:%d, [reqBO, allocBO, allocPRB]:[%d,%d,%d]",\
lcNode->lcId,lcNode->reqBO, lcNode->allocBO, lcNode->allocPRB);
}
lcNode->lcId,lcNode->reqBO, lcNode->allocBO, lcNode->allocPRB);
}
@@
-1761,7
+1762,6
@@
void covertFreqDomRsrcMapToIAPIFormat(uint8_t *sourceBitMap, uint8_t *destBitMap
numBitsToShift += 8;
}
}
numBitsToShift += 8;
}
}
-
/**********************************************************************
End of file
**********************************************************************/
/**********************************************************************
End of file
**********************************************************************/