Commit d27a0cbb authored by Yoshihiro Tomita's avatar Yoshihiro Tomita

Move initialization of ru pointer before it's accessed.

parent 4249ebbf
...@@ -1034,8 +1034,14 @@ int main( int argc, char **argv ) ...@@ -1034,8 +1034,14 @@ int main( int argc, char **argv )
} }
printf("NFAPI MODE:%s\n", nfapi_mode_str); printf("NFAPI MODE:%s\n", nfapi_mode_str);
if (nfapi_mode==2) // VNF
if (nfapi_mode==2) {// VNF
#if defined(PRE_SCD_THREAD)
init_ru_vnf(); // ru pointer is necessary for pre_scd.
#endif
wait_nfapi_init("main?"); wait_nfapi_init("main?");
}
printf("START MAIN THREADS\n"); printf("START MAIN THREADS\n");
...@@ -1064,12 +1070,6 @@ int main( int argc, char **argv ) ...@@ -1064,12 +1070,6 @@ int main( int argc, char **argv )
} }
#if defined(PRE_SCD_THREAD)
if (nfapi_mode==2) { // ru pointer is necessary for pre_scd.
init_ru_vnf();
}
#endif
config_sync_var=0; config_sync_var=0;
if (nfapi_mode==1) { // PNF if (nfapi_mode==1) { // PNF
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment