{
if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
{
- DU_LOG("\nRLC : Memory allocation failed at packDuRlcUeCreateReq");
+ DU_LOG("\nERROR --> RLC : Memory allocation failed at packDuRlcUeCreateReq");
return RFAILED;
}
/* pack the address of the structure */
}
else
{
- DU_LOG("\nRLC: Only LWLC supported for packDuRlcUeCreateReq");
+ DU_LOG("\nERROR --> RLC: Only LWLC supported for packDuRlcUeCreateReq");
return RFAILED;
}
else
{
/* Nothing to do for other selectors */
- DU_LOG("\nRLC: Only LWLC supported for UE Create Request ");
+ DU_LOG("\nERROR --> RLC: Only LWLC supported for UE Create Request ");
ODU_PUT_MSG_BUF(mBuf);
}
{
if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
{
- DU_LOG("\nRLC : Memory allocation failed at packRlcDuUeCfgRsp");
+ DU_LOG("\nERROR --> RLC : Memory allocation failed at packRlcDuUeCfgRsp");
return RFAILED;
}
/* pack the address of the structure */
}
else
{
- DU_LOG("\nRLC: Only LWLC supported for packRlcDuUeCfgRsp");
+ DU_LOG("\nERROR --> RLC: Only LWLC supported for packRlcDuUeCfgRsp");
return RFAILED;
}
else
{
/* Nothing to do for other selectors */
- DU_LOG("\nRLC: Only LWLC supported for UE Cfg Response ");
+ DU_LOG("\nERROR --> RLC: Only LWLC supported for UE Cfg Response ");
ODU_PUT_MSG_BUF(mBuf);
}
{
if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
{
- DU_LOG("\nRLC : Memory allocation failed at packRlcUlRrcMsgToDu");
+ DU_LOG("\nERROR --> RLC : Memory allocation failed at packRlcUlRrcMsgToDu");
return RFAILED;
}
/* pack the address of the structure */
}
else
{
- DU_LOG("\nRLC: Only LWLC supported for packRlcUlRrcMsgToDu");
+ DU_LOG("\nERROR --> RLC: Only LWLC supported for packRlcUlRrcMsgToDu");
}
return RFAILED;
}
else
{
/* Nothing to do for other selectors */
- DU_LOG("\nRLC: Only LWLC supported for UL RRC Message transfer ");
+ DU_LOG("\nERROR --> RLC: Only LWLC supported for UL RRC Message transfer ");
ODU_PUT_MSG_BUF(mBuf);
}
{
if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
{
- DU_LOG("\nRLC : Memory allocation failed at packRlcDlRrcMsgToRlc");
+ DU_LOG("\nERROR --> RLC : Memory allocation failed at packRlcDlRrcMsgToRlc");
return RFAILED;
}
/* pack the address of the structure */
}
else
{
- DU_LOG("\nRLC: Only LWLC supported for packDlRrcMsgToRlc");
+ DU_LOG("\nERROR --> RLC: Only LWLC supported for packDlRrcMsgToRlc");
}
return RFAILED;
}
else
{
/* Nothing to do for other selectors */
- DU_LOG("\nRLC: Only LWLC supported for UL RRC Message transfer ");
+ DU_LOG("\nERROR --> RLC: Only LWLC supported for UL RRC Message transfer ");
ODU_PUT_MSG_BUF(mBuf);
}
return RFAILED;
{
if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
{
- DU_LOG("\nRLC : Memory allocation failed at packRrcDeliveryReportToDu");
+ DU_LOG("\nERROR --> RLC : Memory allocation failed at packRrcDeliveryReportToDu");
return RFAILED;
}
/* pack the address of the structure */
}
else
{
- DU_LOG("\nRLC: Only LWLC supported for packRrcDeliveryReportToDu");
+ DU_LOG("\nERROR --> RLC: Only LWLC supported for packRrcDeliveryReportToDu");
}
return RFAILED;
}
else
{
/* Nothing to do for other selectors */
- DU_LOG("\nRLC: Only LWLC supported for RRC delivery Message transfer ");
+ DU_LOG("\nERROR --> RLC: Only LWLC supported for RRC delivery Message transfer ");
ODU_PUT_MSG_BUF(mBuf);
}
{
if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
{
- DU_LOG("\nRLC : Memory allocation failed at packDuRlcUeReconfigReq");
+ DU_LOG("\nERROR --> RLC : Memory allocation failed at packDuRlcUeReconfigReq");
return RFAILED;
}
/* pack the address of the structure */
}
else
{
- DU_LOG("\nRLC: Only LWLC supported for packDuRlcUeReconfigReq");
+ DU_LOG("\nERROR --> RLC: Only LWLC supported for packDuRlcUeReconfigReq");
return RFAILED;
}
else
{
/* Nothing to do for other selectors */
- DU_LOG("\nRLC: Only LWLC supported for UE Create Request ");
+ DU_LOG("\nERROR --> RLC: Only LWLC supported for UE Create Request ");
ODU_PUT_MSG_BUF(mBuf);
}
return RFAILED;
}
+/*******************************************************************
+ *
+ * @brief Pack and send DL RRC message Response from RLC to DU APP
+ *
+ * @details
+ *
+ * Function : packRlcDlRrcMsgRspToDu
+ *
+ * Functionality:
+ * Pack and send DL RRC message Response from RLC to DU APP
+ *
+ * @params[in] Post structure
+ * DL RRC Msg Response
+ * @return ROK - success
+ * RFAILED - failure
+ *
+ * ****************************************************************/
+uint8_t packRlcDlRrcMsgRspToDu(Pst *pst, RlcDlRrcMsgRsp *dlRrcMsgRsp)
+{
+ Buffer *mBuf = NULLP;
+
+ if(pst->selector == ODU_SELECTOR_LWLC)
+ {
+ if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
+ {
+ DU_LOG("\nERROR --> RLC : Memory allocation failed at packRlcDlRrcMsgRspToDu");
+ return RFAILED;
+ }
+ /* pack the address of the structure */
+ CMCHKPK(oduPackPointer,(PTR)dlRrcMsgRsp, mBuf);
+ return ODU_POST_TASK(pst,mBuf);
+ }
+ else
+ {
+ DU_LOG("\nERROR --> RLC: Only LWLC supported for packRlcDlRrcMsgRspToDu");
+ }
+ return RFAILED;
+}
+
+/*******************************************************************
+ *
+ * @brief Unpack DL RRC Msg Response received at DU APP from RLC
+ *
+ * @details
+ *
+ * Function : unpackRlcDlRrcMsgRspToDu
+ *
+ * Functionality:
+ * Unpack DL RRC Msg Response received at DU APP from RLC
+ *
+ * @params[in]
+ * @return ROK - success
+ * RFAILED - failure
+ *
+ * ****************************************************************/
+uint8_t unpackRlcDlRrcMsgRspToDu(RlcDlRrcMsgRspToDuFunc func, Pst *pst, Buffer *mBuf)
+{
+ if(pst->selector == ODU_SELECTOR_LWLC)
+ {
+ RlcDlRrcMsgRsp *dlRrcMsgRsp;
+ /* unpack the address of the structure */
+ CMCHKUNPK(oduUnpackPointer, (PTR *)&dlRrcMsgRsp, mBuf);
+ ODU_PUT_MSG_BUF(mBuf);
+ return (*func)(pst, dlRrcMsgRsp);
+ }
+ else
+ {
+ /* Nothing to do for other selectors */
+ DU_LOG("\nERROR --> RLC: Only LWLC supported for DL RRC Message transfer ");
+ ODU_PUT_MSG_BUF(mBuf);
+ }
+ return RFAILED;
+}
+
+/*******************************************************************
+ *
+ * @brief Pack and send UL user data from RLC to DU APP
+ *
+ * @details
+ *
+ * Function : packRlcUlUserDataToDu
+ *
+ * Functionality:
+ * Pack and send UL User Data from RLC to DU APP
+ *
+ * @params[in] Post structure
+ * UL user data
+ * @return ROK - success
+ * RFAILED - failure
+ *
+ * ****************************************************************/
+uint8_t packRlcUlUserDataToDu(Pst *pst, RlcUlUserDatInfo *ulUserData)
+{
+ Buffer *mBuf = NULLP;
+
+ if(pst->selector == ODU_SELECTOR_LWLC)
+ {
+ if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
+ {
+ DU_LOG("\nERROR --> RLC UL: Memory allocation failed at packRlcUlUserDataToDu");
+ return RFAILED;
+ }
+ /* pack the address of the structure */
+ CMCHKPK(oduPackPointer,(PTR)ulUserData, mBuf);
+ return ODU_POST_TASK(pst,mBuf);
+ }
+ else
+ {
+ DU_LOG("\nERROR --> RLC UL: Only LWLC supported for packRlcUlUserDataToDu");
+ }
+ return RFAILED;
+}
+
+/*******************************************************************
+ *
+ * @brief Unpack UL user data received at DU APP from RLC
+ *
+ * @details
+ *
+ * Function : unpackRlcUlUserDataToDu
+ *
+ * Functionality:
+ * Unpack UL user data received at DU APP from RLC
+ *
+ * @params[in]
+ * @return ROK - success
+ * RFAILED - failure
+ *
+ * ****************************************************************/
+uint8_t unpackRlcUlUserDataToDu(RlcUlUserDataToDuFunc func, Pst *pst, Buffer *mBuf)
+{
+ if(pst->selector == ODU_SELECTOR_LWLC)
+ {
+ RlcUlUserDatInfo *ulUserData;
+ /* unpack the address of the structure */
+ CMCHKUNPK(oduUnpackPointer, (PTR *)&ulUserData, mBuf);
+ ODU_PUT_MSG_BUF(mBuf);
+ return (*func)(pst, ulUserData);
+ }
+ else
+ {
+ /* Nothing to do for other selectors */
+ DU_LOG("\nERROR --> RLC UL: Only LWLC supported for UL User data transfer ");
+ ODU_PUT_MSG_BUF(mBuf);
+ }
+
+ return RFAILED;
+}
+
+/*******************************************************************
+ *
+ * @brief Pack and send DL user data from DUAPP to RLC
+ *
+ * @details
+ *
+ * Function : packRlcDlUserDataToRlc
+ *
+ * Functionality:
+ * Pack and send DL User Data from DUAPP to RLC
+ *
+ * @params[in] Post structure
+ * DL user data
+ * @return ROK - success
+ * RFAILED - failure
+ *
+ * ****************************************************************/
+uint8_t packRlcDlUserDataToRlc(Pst *pst, RlcDlUserDataInfo *dlUserData)
+{
+ Buffer *mBuf = NULLP;
+
+ if(pst->selector == ODU_SELECTOR_LWLC)
+ {
+ if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
+ {
+ DU_LOG("\nERROR --> RLC DL: Memory allocation failed at packRlcDlUserDataToRlc");
+ return RFAILED;
+ }
+ /* pack the address of the structure */
+ CMCHKPK(oduPackPointer,(PTR)dlUserData, mBuf);
+ return ODU_POST_TASK(pst,mBuf);
+ }
+ else
+ {
+ DU_LOG("\nERROR --> RLC DL: Only LWLC supported for packRlcUlUserDataToDu");
+ }
+ return RFAILED;
+}
+
+/*******************************************************************
+ *
+ * @brief Unpack DL user data received at RLC from DUAPP
+ *
+ * @details
+ *
+ * Function : unpackRlcDlUserDataToRlc
+ *
+ * Functionality:
+ * Unpack DL user data received at RLC from DUAPP
+ *
+ * @params[in]
+ * @return ROK - success
+ * RFAILED - failure
+ *
+ * ****************************************************************/
+uint8_t unpackRlcDlUserDataToRlc(DuRlcDlUserDataToRlcFunc func, Pst *pst, Buffer *mBuf)
+{
+ if(pst->selector == ODU_SELECTOR_LWLC)
+ {
+ RlcDlUserDataInfo *dlUserData;
+ /* unpack the address of the structure */
+ CMCHKUNPK(oduUnpackPointer, (PTR *)&dlUserData, mBuf);
+ ODU_PUT_MSG_BUF(mBuf);
+ return (*func)(pst, dlUserData);
+ }
+ else
+ {
+ /* Nothing to do for other selectors */
+ DU_LOG("\nERROR --> RLC DL: Only LWLC supported for UL User data transfer ");
+ ODU_PUT_MSG_BUF(mBuf);
+ }
+
+ return RFAILED;
+}
/**********************************************************************
End of file
***********************************************************************/