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
Merge "[Epic-ID: ODUHIGH-462][Task-ID: ODUHIGH-482] G release documentation"
[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
fc9df1b
..
6fec8da
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.
@@
-63,6
+63,7
@@
uint8_t egtpActvInit(Ent entity, Inst inst, Region region, Reason reason)
return ROK;
}
return ROK;
}
+#ifdef CALL_FLOW_DEBUG_LOG
/**************************************************************************
* @brief Function prints the src dest and msg reached to egtp.
*
/**************************************************************************
* @brief Function prints the src dest and msg reached to egtp.
*
@@
-159,6
+160,7
@@
void callFlowEgtpActvTsk(Pst *pst)
}
DU_LOG("\nCall Flow: %s -> %s : %s\n", sourceTask, destTask, message);
}
}
DU_LOG("\nCall Flow: %s -> %s : %s\n", sourceTask, destTask, message);
}
+#endif
/**************************************************************************
* @brief Task Activation callback function.
/**************************************************************************
* @brief Task Activation callback function.
@@
-287,7
+289,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
+876,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
+891,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;
}
@@
-936,6
+942,7
@@
uint8_t egtpRecvMsg()
//ODU_PRINT_MSG(recvBuf, 0 ,0);
egtpHdlRecvData(recvBuf);
gDlDataRcvdCnt++;
//ODU_PRINT_MSG(recvBuf, 0 ,0);
egtpHdlRecvData(recvBuf);
gDlDataRcvdCnt++;
+
}
}
}
}