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
[JIRA ID - ODUHIGH-275] Part -4 classifying of logs of sch folder
[o-du/l2.git]
/
src
/
5gnrsch
/
sch_slot_ind.c
diff --git
a/src/5gnrsch/sch_slot_ind.c
b/src/5gnrsch/sch_slot_ind.c
index
9864701
..
44864f0
100644
(file)
--- a/
src/5gnrsch/sch_slot_ind.c
+++ b/
src/5gnrsch/sch_slot_ind.c
@@
-49,8
+49,8
@@
SchMacDlAllocFunc schMacDlAllocOpts[] =
packSchMacDlAlloc
};
packSchMacDlAlloc
};
-
extern
SchCb schCb[SCH_MAX_INST];
-
extern
int schFillRar(RarAlloc *rarAlloc, uint16_t raRnti, uint16_t pci, uint8_t
+SchCb schCb[SCH_MAX_INST];
+int schFillRar(RarAlloc *rarAlloc, uint16_t raRnti, uint16_t pci, uint8_t
offsetPointA);
/*******************************************************************
offsetPointA);
/*******************************************************************
@@
-155,7
+155,7
@@
uint8_t schFillBoGrantDlSchedInfo(SchCellCb *cell, DlSchedInfo *dlSchedInfo, DlM
SCH_ALLOC(dlMsgAlloc, sizeof(DlMsgAlloc));
if(!dlMsgAlloc)
{
SCH_ALLOC(dlMsgAlloc, sizeof(DlMsgAlloc));
if(!dlMsgAlloc)
{
- DU_LOG("\n
MAC
: Memory Allocation failed for ded DL msg alloc");
+ DU_LOG("\n
ERROR --> SCH
: Memory Allocation failed for ded DL msg alloc");
return RFAILED;
}
memset(dlMsgAlloc, 0, sizeof(DlMsgAlloc));
return RFAILED;
}
memset(dlMsgAlloc, 0, sizeof(DlMsgAlloc));
@@
-240,8
+240,8
@@
uint8_t schProcessSlotInd(SlotIndInfo *slotInd, Inst schInst)
memcpy(&cell->slotInfo, slotInd, sizeof(SlotIndInfo));
dlBrdcstAlloc->ssbIdxSupported = 1;
memcpy(&cell->slotInfo, slotInd, sizeof(SlotIndInfo));
dlBrdcstAlloc->ssbIdxSupported = 1;
- sfnSlot =
((dlSchedInfo.schSlotValue.broadcastTime.sfn * 10)
+
-
dlSchedInfo.schSlotValue.broadcastTime.slot)
;
+ sfnSlot =
dlSchedInfo.schSlotValue.broadcastTime.sfn * cell->numSlots
+
+
dlSchedInfo.schSlotValue.broadcastTime.slot
;
slot = dlSchedInfo.schSlotValue.currentTime.slot;
slot = dlSchedInfo.schSlotValue.currentTime.slot;
@@
-282,7
+282,7
@@
uint8_t schProcessSlotInd(SlotIndInfo *slotInd, Inst schInst)
ret = schBroadcastAlloc(cell,dlBrdcstAlloc,slot);
if(ret != ROK)
{
ret = schBroadcastAlloc(cell,dlBrdcstAlloc,slot);
if(ret != ROK)
{
- DU_LOG("\nschBroadcastAlloc failed");
+ DU_LOG("\n
ERROR --> SCH :
schBroadcastAlloc failed");
return (ret);
}
}
return (ret);
}
}
@@
-294,7
+294,7
@@
uint8_t schProcessSlotInd(SlotIndInfo *slotInd, Inst schInst)
SCH_ALLOC(rarAlloc, sizeof(RarAlloc));
if(!rarAlloc)
{
SCH_ALLOC(rarAlloc, sizeof(RarAlloc));
if(!rarAlloc)
{
- DU_LOG("\n
MAC
: Memory Allocation failed for RAR alloc");
+ DU_LOG("\n
ERROR --> SCH
: Memory Allocation failed for RAR alloc");
return RFAILED;
}
return RFAILED;
}
@@
-322,7
+322,7
@@
uint8_t schProcessSlotInd(SlotIndInfo *slotInd, Inst schInst)
SCH_ALLOC(msg4Alloc, sizeof(DlMsgAlloc));
if(!msg4Alloc)
{
SCH_ALLOC(msg4Alloc, sizeof(DlMsgAlloc));
if(!msg4Alloc)
{
- DU_LOG("\n
MAC
: Memory Allocation failed for msg4 alloc");
+ DU_LOG("\n
ERROR --> SCH
: Memory Allocation failed for msg4 alloc");
return RFAILED;
}
return RFAILED;
}
@@
-369,7
+369,7
@@
uint8_t schProcessSlotInd(SlotIndInfo *slotInd, Inst schInst)
SCH_ALLOC(dciInfo, sizeof(DciInfo));
if(!dciInfo)
{
SCH_ALLOC(dciInfo, sizeof(DciInfo));
if(!dciInfo)
{
- DU_LOG("\n
MAC
: Memory Allocation failed for dciInfo alloc");
+ DU_LOG("\n
ERROR --> SCH
: Memory Allocation failed for dciInfo alloc");
return RFAILED;
}
memset(dciInfo,0,sizeof(DciInfo));
return RFAILED;
}
memset(dciInfo,0,sizeof(DciInfo));
@@
-396,7
+396,7
@@
uint8_t schProcessSlotInd(SlotIndInfo *slotInd, Inst schInst)
ret = sendDlAllocToMac(&dlSchedInfo, schInst);
if(ret != ROK)
{
ret = sendDlAllocToMac(&dlSchedInfo, schInst);
if(ret != ROK)
{
- DU_LOG("\nSending DL Broadcast allocation from SCH to MAC failed");
+ DU_LOG("\n
ERROR --> SCH :
Sending DL Broadcast allocation from SCH to MAC failed");
return (ret);
}
return (ret);
}