rlcUtlInitToBeFreed(gCb, &(gCb->u.dlCb->toBeFreed));
rlcUtlInitializeSelfPst(gCb);
- if(SGetMsg(gCb->init.region,
- gCb->init.pool,
- &(gCb->u.dlCb->selfPstMBuf)) != ROK)
+ if(ODU_GET_MSG_BUF(gCb->init.region, gCb->init.pool, &(gCb->u.dlCb->selfPstMBuf)) != ROK)
{
RLC_FREE(gCb,gCb->u.dlCb->udxDlSap, rlcSapSize);
RLC_FREE(gCb,gCb->u.dlCb->rlcKwuDlSap, rlcSapSize);
gCb->init.cfgDone = TRUE;
+ /* TODO : make this generic for DL and UL after support for UL throughput calculation is added */
+ if(gCb->genCfg.rlcMode == LKW_RLC_MODE_DL)
+ {
+ /* Starting timer to print throughput */
+ if((rlcChkTmr(gCb, (PTR)(&gCb->rlcThpt), EVENT_RLC_THROUGHPUT_TMR)) == FALSE)
+ {
+ DU_LOG("\nINFO --> RLC_DL : Starting Throughput timer");
+ rlcStartTmr(gCb, (PTR)(&gCb->rlcThpt), EVENT_RLC_THROUGHPUT_TMR);
+ }
+ }
+
return (LCM_REASON_NOT_APPL);
}
{
if (gCb->u.dlCb->selfPstMBuf != NULL)
{
- SPutMsg(gCb->u.dlCb->selfPstMBuf);
+ ODU_PUT_MSG_BUF(gCb->u.dlCb->selfPstMBuf);
}
RLC_FREE(gCb,gCb->u.dlCb, sizeof (RlcDlCb));
}
return RFAILED;
}
- if (SGetMsg(pst.region, pst.pool, &dstMbuf) != ROK)
+ if (ODU_GET_MSG_BUF(pst.region, pst.pool, &dstMbuf) != ROK)
{
DU_LOG("\nERROR --> RLC : Memory Allocation failed");
return RFAILED;