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-462][Task-ID: ODUHIGH-472] Implementation of onduration timer
[o-du/l2.git]
/
src
/
du_app
/
du_egtp.c
diff --git
a/src/du_app/du_egtp.c
b/src/du_app/du_egtp.c
index
b895aa2
..
f5fe776
100644
(file)
--- a/
src/du_app/du_egtp.c
+++ b/
src/du_app/du_egtp.c
@@
-27,10
+27,10
@@
#include "du_app_mac_inf.h"
#include "du_cfg.h"
#include "du_egtp.h"
#include "du_app_mac_inf.h"
#include "du_cfg.h"
#include "du_egtp.h"
+#include "du_app_rlc_inf.h"
+#include "du_mgr.h"
#include "du_utils.h"
#include "du_utils.h"
-/* Global variable declaration */
-EgtpGlobalCb egtpCb;
/**************************************************************************
* @brief Task Initiation callback function.
/**************************************************************************
* @brief Task Initiation callback function.
@@
-287,7
+287,7
@@
uint8_t egtpCfgReq(Pst *pst, EgtpConfig egtpCfg)
memcpy(&egtpCb.egtpCfg, &egtpCfg, sizeof(EgtpConfig));
egtpCb.recvTptSrvr.addr.address = CM_INET_NTOH_UINT32(egtpCb.egtpCfg.localIp.ipV4Addr);
memcpy(&egtpCb.egtpCfg, &egtpCfg, sizeof(EgtpConfig));
egtpCb.recvTptSrvr.addr.address = CM_INET_NTOH_UINT32(egtpCb.egtpCfg.localIp.ipV4Addr);
- egtpCb.recvTptSrvr.addr.port = EGTP_
DFLT
_PORT;
+ egtpCb.recvTptSrvr.addr.port = EGTP_
RECVR
_PORT;
egtpCb.dstCb.dstIp = CM_INET_NTOH_UINT32(egtpCb.egtpCfg.destIp.ipV4Addr);
egtpCb.dstCb.dstPort = egtpCb.egtpCfg.destPort;
egtpCb.dstCb.dstIp = CM_INET_NTOH_UINT32(egtpCb.egtpCfg.destIp.ipV4Addr);
egtpCb.dstCb.dstPort = egtpCb.egtpCfg.destPort;
@@
-874,11
+874,12
@@
uint8_t egtpSendMsg(Buffer *mBuf)
uint16_t txLen;
CmInetMemInfo info;
CmInetAddr dstAddr;
uint16_t txLen;
CmInetMemInfo info;
CmInetAddr dstAddr;
+ static uint64_t numDataSent = 0;
info.region = DU_APP_MEM_REGION;
info.pool = DU_POOL;
info.region = DU_APP_MEM_REGION;
info.pool = DU_POOL;
- dstAddr.port = EGTP_
DFLT
_PORT;
+ dstAddr.port = EGTP_
RECVR
_PORT;
dstAddr.address = egtpCb.dstCb.dstIp;
ret = cmInetSendMsg(&(egtpCb.dstCb.sendTptSrvr.sockFd), &dstAddr, &info, \
dstAddr.address = egtpCb.dstCb.dstIp;
ret = cmInetSendMsg(&(egtpCb.dstCb.sendTptSrvr.sockFd), &dstAddr, &info, \
@@
-888,8
+889,11
@@
uint8_t egtpSendMsg(Buffer *mBuf)
DU_LOG("\nERROR --> EGTP : Failed sending the message");
return RFAILED;
}
DU_LOG("\nERROR --> EGTP : Failed sending the message");
return RFAILED;
}
-
- DU_LOG("\nDEBUG --> EGTP : Message Sent");
+ else
+ {
+ DU_LOG("\nDEBUG --> EGTP : Sent UL Message [%ld]", numDataSent+1);
+ numDataSent++;
+ }
return ROK;
}
return ROK;
}
@@
-932,10
+936,11
@@
uint8_t egtpRecvMsg()
&recvBuf, (int16_t *)&bufLen, CM_INET_NO_FLAG);
if(ret == ROK && recvBuf != NULLP)
{
&recvBuf, (int16_t *)&bufLen, CM_INET_NO_FLAG);
if(ret == ROK && recvBuf != NULLP)
{
-
//
DU_LOG("\nDEBUG --> EGTP : Received DL Message[%ld]\n", gDlDataRcvdCnt + 1);
+ DU_LOG("\nDEBUG --> EGTP : Received DL Message[%ld]\n", gDlDataRcvdCnt + 1);
//ODU_PRINT_MSG(recvBuf, 0 ,0);
egtpHdlRecvData(recvBuf);
gDlDataRcvdCnt++;
//ODU_PRINT_MSG(recvBuf, 0 ,0);
egtpHdlRecvData(recvBuf);
gDlDataRcvdCnt++;
+
}
}
}
}