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
implementation of RLC UE delete req and rsp JIRA-ID : ODUHIGH-43
[o-du/l2.git]
/
src
/
5gnrrlc
/
kw_ul_ex_ms.c
diff --git
a/src/5gnrrlc/kw_ul_ex_ms.c
b/src/5gnrrlc/kw_ul_ex_ms.c
index
64b3e3f
..
7295adf
100755
(executable)
--- a/
src/5gnrrlc/kw_ul_ex_ms.c
+++ b/
src/5gnrrlc/kw_ul_ex_ms.c
@@
-18,19
+18,16
@@
/********************************************************************20**
/********************************************************************20**
- Name:
LTE-
RLC Layer - System Services Interface Functions
+ Name:
NR
RLC Layer - System Services Interface Functions
Type: C file
Desc: C source code for the interface to System Services
Type: C file
Desc: C source code for the interface to System Services
- of
LTE-
RLC
+ of
NR
RLC
File: kw_ul_ex_ms.c
*********************************************************************21*/
File: kw_ul_ex_ms.c
*********************************************************************21*/
-static const char* RLOG_MODULE_NAME="RLC_UL";
-static int RLOG_MODULE_ID=2048;
-static int RLOG_FILE_ID=206;
/** @file kw_ul_ex_ms.c
@brief RLC System Services Interface
/** @file kw_ul_ex_ms.c
@brief RLC System Services Interface
@@
-81,13
+78,7
@@
S16 rlcUlInitExt ARGS (( Void ));
*
*/
*
*/
-#ifdef ANSI
-S16 rlcUlInitExt
-(
-)
-#else
S16 rlcUlInitExt()
S16 rlcUlInitExt()
-#endif
{
return ROK;
{
return ROK;
@@
-105,16
+96,16
@@
S16 rlcUlInitExt()
* <b> Activates Initialization </b>
*
* @b Description:
* <b> Activates Initialization </b>
*
* @b Description:
- * This function is invoked by system services to initialize the
LTE-
RLC
+ * This function is invoked by system services to initialize the
NR
RLC
* layer. This is an entry point used by LTE_RLC layer to initialize its
* global variables, before becoming operational.
*
* Allowable values for parameters are specified in ssi.h.
*
* layer. This is an entry point used by LTE_RLC layer to initialize its
* global variables, before becoming operational.
*
* Allowable values for parameters are specified in ssi.h.
*
- * @param[in] ent - Specify the entity id of the
LTE-
RLC task.
- * @param[in] inst - Specify the entity id of the
LTE-
RLC task.
+ * @param[in] ent - Specify the entity id of the
NR
RLC task.
+ * @param[in] inst - Specify the entity id of the
NR
RLC task.
* @param[in] region - Specifies the memory region from which
* @param[in] region - Specifies the memory region from which
- *
LTE-
RLC should allocate structures and buffers.
+ *
NR
RLC should allocate structures and buffers.
* @param[in] reason - Specifies the reason for calling this
* initialization function.
*
* @param[in] reason - Specifies the reason for calling this
* initialization function.
*
@@
-122,7
+113,6
@@
S16 rlcUlInitExt()
* -# ROK
*
*/
* -# ROK
*
*/
-#ifdef ANSI
S16 rlcUlActvInit
(
Ent ent, /* entity */
S16 rlcUlActvInit
(
Ent ent, /* entity */
@@
-130,13
+120,6
@@
Inst inst, /* instance */
Region region, /* region */
Reason reason /* reason */
)
Region region, /* region */
Reason reason /* reason */
)
-#else
-S16 rlcUlActvInit(ent, inst, region, reason)
-Ent ent; /* entity */
-Inst inst; /* instance */
-Region region; /* region */
-Reason reason; /* reason */
-#endif
{
RlcCb *tRlcCb;
{
RlcCb *tRlcCb;
@@
-193,7
+176,7
@@
Reason reason; /* reason */
* <b> Activation Task </b>
*
* @b Description:
* <b> Activation Task </b>
*
* @b Description:
- * Processes events received for
MLTE-
RLC layer via System Services from
+ * Processes events received for
NR
RLC layer via System Services from
* other layers.
*
* @param[in] pst - Pst Structure
* other layers.
*
* @param[in] pst - Pst Structure
@@
-203,17
+186,11
@@
Reason reason; /* reason */
* -# ROK
*
*/
* -# ROK
*
*/
-#ifdef ANSI
S16 rlcUlActvTsk
(
Pst *pst, /* pst structure */
Buffer *mBuf /* message buffer */
)
S16 rlcUlActvTsk
(
Pst *pst, /* pst structure */
Buffer *mBuf /* message buffer */
)
-#else
-S16 rlcUlActvTsk(pst, mBuf)
-Pst *pst; /* pst structure */
-Buffer *mBuf; /* message buffer */
-#endif
{
S16 ret = ROK;
{
S16 ret = ROK;
@@
-237,16
+214,21
@@
Buffer *mBuf; /* message buffer */
break;
}
break;
}
- case EVENT_RLC_UE_C
ONFIG
_REQ: /* UE Create Request */
+ case EVENT_RLC_UE_C
REATE
_REQ: /* UE Create Request */
{
ret = unpackRlcUeCreateReq(RlcProcUeCreateReq, pst, mBuf);
break;
}
{
ret = unpackRlcUeCreateReq(RlcProcUeCreateReq, pst, mBuf);
break;
}
- case EVENT_RLC_UE_RECONFIG_REQ:
/* UE Reconfig Request */
+ case EVENT_RLC_UE_RECONFIG_REQ: /* UE Reconfig Request */
{
ret = unpackRlcUeReconfigReq(RlcProcUeReconfigReq, pst, mBuf);
break;
}
{
ret = unpackRlcUeReconfigReq(RlcProcUeReconfigReq, pst, mBuf);
break;
}
+ case EVENT_RLC_UE_DELETE_REQ:
+ {
+ ret = unpackRlcUeDeleteReq(RlcProcUeDeleteReq, pst, mBuf);
+ break;
+ }
case LKW_EVT_STS_REQ:
{
case LKW_EVT_STS_REQ:
{
@@
-284,7
+266,7
@@
Buffer *mBuf; /* message buffer */
ODU_PUT_MSG_BUF(mBuf);
if (pst->dstInst < MAX_RLC_INSTANCES)
{
ODU_PUT_MSG_BUF(mBuf);
if (pst->dstInst < MAX_RLC_INSTANCES)
{
-
RLOG1(L_FATAL,"
Received Invalid Event[%d] from SM",
+
DU_LOG("\nERROR --> RLC_UL :
Received Invalid Event[%d] from SM",
pst->event);
}
ret = RFAILED;
pst->event);
}
ret = RFAILED;
@@
-329,7
+311,7
@@
Buffer *mBuf; /* message buffer */
ODU_PUT_MSG_BUF(mBuf);
if (pst->dstInst < MAX_RLC_INSTANCES)
{
ODU_PUT_MSG_BUF(mBuf);
if (pst->dstInst < MAX_RLC_INSTANCES)
{
-
RLOG1(L_ERROR,"
Received Invalid Event[%d] from RLC UL",
+
DU_LOG("\nERROR --> RLC_UL :
Received Invalid Event[%d] from RLC UL",
pst->event);
}
ret = RFAILED;
pst->event);
}
ret = RFAILED;
@@
-381,7
+363,7
@@
Buffer *mBuf; /* message buffer */
ODU_PUT_MSG_BUF(mBuf);
if (pst->dstInst < MAX_RLC_INSTANCES)
{
ODU_PUT_MSG_BUF(mBuf);
if (pst->dstInst < MAX_RLC_INSTANCES)
{
-
RLOG1(L_ERROR,"
Received Invalid Event[%d] from RRC",
+
DU_LOG("\nERROR --> RLC_UL :
Received Invalid Event[%d] from RRC",
pst->event);
}
ret = RFAILED;
pst->event);
}
ret = RFAILED;
@@
-412,7
+394,7
@@
Buffer *mBuf; /* message buffer */
ODU_PUT_MSG_BUF(mBuf);
if (pst->dstInst < MAX_RLC_INSTANCES)
{
ODU_PUT_MSG_BUF(mBuf);
if (pst->dstInst < MAX_RLC_INSTANCES)
{
-
RLOG1(L_ERROR,"
Received Invalid Event[%d] from PDCP",
+
DU_LOG("\nERROR --> RLC_UL :
Received Invalid Event[%d] from PDCP",
pst->event);
}
ret = RFAILED;
pst->event);
}
ret = RFAILED;
@@
-445,7
+427,7
@@
Buffer *mBuf; /* message buffer */
ODU_PUT_MSG_BUF(mBuf);
if (pst->dstInst < MAX_RLC_INSTANCES)
{
ODU_PUT_MSG_BUF(mBuf);
if (pst->dstInst < MAX_RLC_INSTANCES)
{
-
RLOG1(L_ERROR,"
Received Invalid Event[%d] from MAC",
+
DU_LOG("\nERROR --> RLC_UL :
Received Invalid Event[%d] from MAC",
pst->event);
}
ret = RFAILED;
pst->event);
}
ret = RFAILED;
@@
-486,7
+468,7
@@
Buffer *mBuf; /* message buffer */
}
default:
{
}
default:
{
-
printf("\n ERROR
Invalid Event[%d] from CL to PDCPUL\n",
+
DU_LOG("\nERROR --> RLC_UL :
Invalid Event[%d] from CL to PDCPUL\n",
pst->event);
ODU_PUT_MSG_BUF(mBuf);
break;
pst->event);
ODU_PUT_MSG_BUF(mBuf);
break;
@@
-500,7
+482,7
@@
Buffer *mBuf; /* message buffer */
{
if (pst->dstInst < MAX_RLC_INSTANCES)
{
{
if (pst->dstInst < MAX_RLC_INSTANCES)
{
-
RLOG1(L_ERROR, "
Received Invalid Source Entity[%d]",pst->event);
+
DU_LOG("\nERROR --> RLC_UL :
Received Invalid Source Entity[%d]",pst->event);
}
ODU_PUT_MSG_BUF(mBuf);
ret = RFAILED;
}
ODU_PUT_MSG_BUF(mBuf);
ret = RFAILED;