[Epic-Id: ODUHIGH-613][Task-Id: ODUHIGH-622]| NFAPI_BRANCH | Changes related to ERROR... 54/13254/1
authorsvaidhya <svaidhya@radisys.com>
Fri, 9 Aug 2024 04:53:20 +0000 (10:23 +0530)
committersvaidhya <svaidhya@radisys.com>
Fri, 9 Aug 2024 04:53:57 +0000 (10:23 +0530)
Change-Id: Ife0cfa4203a3009268c02ada5c3120f545ec67aa
Signed-off-by: svaidhya <svaidhya@radisys.com>
12 files changed:
src/5gnrmac/mac_cfg_hdl.c
src/5gnrmac/nfapi_common.h
src/5gnrmac/nfapi_p7_clk.c
src/5gnrmac/nfapi_p7_msg_hdl.c
src/5gnrmac/nfapi_vnf_fsm.c
src/5gnrmac/nfapi_vnf_fsm.h
src/pnf_stub/pnf_stub.c
src/pnf_stub/pnf_stub.h
src/pnf_stub/pnf_stub_p5_msg_hdl.c
src/pnf_stub/pnf_stub_p7_msg_hdl.c
src/pnf_stub/pnf_stub_p7_udp.c
src/pnf_stub/pnf_stub_p7_udp.h

index 29899fe..a818cdd 100644 (file)
@@ -33,8 +33,6 @@
 #ifdef NFAPI_ENABLED
 #include "nfapi_interface.h"
 #include "nfapi_vnf_fsm.h"
-
-extern NfapiVnfDb vnfDb;
 #endif
 
 uint8_t ssbPeriodicity[6] = {5, 10, 20, 40, 80, 160};
index c5c4bf2..8d89a97 100644 (file)
 }
 
 /*Global Variable*/
-uint32_t PER_TTI_TIME_USEC;
-uint8_t  NUM_SLOTS_PER_SUBFRAME;
+extern uint32_t PER_TTI_TIME_USEC;
+extern uint8_t  NUM_SLOTS_PER_SUBFRAME;
 
 /*Common Functions*/
 void nfapiFillP5Hdr(Buffer *mBuf);
index 8e1abf3..5100fb8 100644 (file)
@@ -41,8 +41,8 @@
 #include "mac_utils.h"
 #include "nfapi_p7_msg_hdl.h"
 
-extern uint32_t PER_TTI_TIME_USEC;
-extern uint8_t  NUM_SLOTS_PER_SUBFRAME;
+uint32_t PER_TTI_TIME_USEC;
+uint8_t  NUM_SLOTS_PER_SUBFRAME;
 
 /**************************************************************************
  * @brief Task Initiation callback function. 
index 6c777f1..ca2acd6 100644 (file)
@@ -31,8 +31,6 @@
 #include "nfapi_common.h"
 #include "nfapi_udp_p7.h"
 
-extern NfapiVnfDb vnfDb;
-
 /***********************************************************************
  *
  * @brief Pack parameters of Precoding and Beamforming
index 6983a33..953a597 100644 (file)
@@ -29,6 +29,8 @@
 #include "mac_utils.h"
 #include "lwr_mac_fsm.h"
 
+NfapiVnfDb vnfDb;
+
 /*******************************************************************
  *
  * @brief Initalization of VNF Database
index 8c5cea3..6eb571f 100644 (file)
@@ -119,7 +119,7 @@ typedef struct nfapiVnfDb
 }NfapiVnfDb;
 
 /* Global variables */
-NfapiVnfDb vnfDb;
+extern NfapiVnfDb vnfDb;
 
 void nFapiVnfInit();
 typedef uint8_t (*nFapiVnfFsmHdlr)(nFapi_p5_hdr *, nFapi_msg_header *, void *);
index df75c81..df299c9 100644 (file)
@@ -38,9 +38,9 @@
 #include "pnf_stub.h"
 #include "pnf_stub_p5_msg_hdl.h"
 
-extern uint32_t PER_TTI_TIME_USEC;
-extern uint8_t  NUM_SLOTS_PER_SUBFRAME;
-extern PnfGlobalCb pnfCb;
+uint32_t PER_TTI_TIME_USEC;
+uint8_t  NUM_SLOTS_PER_SUBFRAME;
+PnfGlobalCb pnfCb;
 
 void init_log()
 {
index 40edd3c..e6befb5 100644 (file)
 #define CONFDC_LEVEL_BAD  1
 #define SLOT_DELAY        3
 
-uint32_t PER_TTI_TIME_USEC;
-uint8_t  NUM_SLOTS_PER_SUBFRAME;
+extern uint32_t PER_TTI_TIME_USEC;
+extern uint8_t  NUM_SLOTS_PER_SUBFRAME;
 
 typedef enum
 {
@@ -183,7 +183,7 @@ typedef struct pnfGlobalCb
    //DuDb         duInfo[MAX_DU_SUPPORTED]; /*TODO: VNF Database can be added*/
 }PnfGlobalCb;
 
-PnfGlobalCb pnfCb;
+extern PnfGlobalCb pnfCb;
 
 uint8_t p5MsgHandlerAtPnf(Buffer *mBuf);
 void nfapiFillP5Hdr(Buffer *mBuf);
index 0419c82..8e0ef6e 100644 (file)
@@ -39,7 +39,6 @@
 #include "pnf_stub_p7_udp.h"
 #include "pnf_stub.h"
 
-PnfGlobalCb pnfCb;
 /*********************************************************************************
  *
  * @Function Name: buildAndSendPnfReadyInd 
index 7817938..0c65ce9 100644 (file)
@@ -38,9 +38,6 @@
 #include "pnf_stub_p7_udp.h"
 #include "pnf_stub.h"
 
-extern PnfGlobalCb pnfCb;
-extern uint8_t  NUM_SLOTS_PER_SUBFRAME;
-
 /*********************************************************************************
  * @Brief: Filling of Ul Node Sync
  *
index 0d2e727..b8c0ce2 100644 (file)
@@ -27,6 +27,7 @@
 
 uint8_t sockType;
 uint8_t protType;
+PnfP7UdpGlobalCb pnfP7Cb;
 
 /**************************************************************************
  * @brief Task Initiation callback function. 
index 69961e9..96ba951 100644 (file)
@@ -37,7 +37,7 @@ typedef struct pnfP7UdpGlobalCb
    uint16_t     gCntMsg; 
 }PnfP7UdpGlobalCb;
 
-PnfP7UdpGlobalCb pnfP7Cb;
+extern PnfP7UdpGlobalCb pnfP7Cb;
 
 uint8_t pnfP7UdpActvInit();
 uint8_t pnfP7UdpCfgReq();