]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/netapi.git/blobdiff - ti/runtime/netapi/test/net_test_bench.c
Merge remote branch 'origin/dpi_demo'
[keystone-rtos/netapi.git] / ti / runtime / netapi / test / net_test_bench.c
index 8d37eea4ca27edca530447788f920c238b472432..95aca3272d01e39795e5c2202a3f81d2e77d1a66 100755 (executable)
@@ -77,6 +77,7 @@
 #endif /* Device */
 extern Rm_ServiceHandle   *rmClientServiceHandle;
 
+extern Rm_ServiceHandle   *rmClientServiceHandle;
 #define netapi_timing_start hplib_mUtilGetPmuCCNT
 
 static int scnt=0;
@@ -247,7 +248,7 @@ unsigned long t2;
 
     CPU_ZERO( &cpu_set);
     CPU_SET( 2, &cpu_set);
-    hplib_utilSetupThread(2, &cpu_set, hplib_spinLock_Type_LOL);
+    hplib_utilSetupThread(0, &cpu_set, hplib_spinLock_Type_LOL);
     start_time = hplib_mUtilGetTimestamp();
 
      //DAL we poll the default pktio channel for pkts from net
@@ -305,20 +306,15 @@ int main(int argc, char **argv)
      //install signal handler for ^c
     signal(SIGINT,netTest_utilMySig);
 
-
-
-#if 1
     if (initRm())
     {
         printf("main: initRm() returned error\n");
         exit(1);
     }
-#endif
-
 
     CPU_ZERO( &cpu_set);
     CPU_SET( 0, &cpu_set);
-    hplib_utilSetupThread(2, &cpu_set, hplib_spinLock_Type_LOL);
+    hplib_utilSetupThread(0, &cpu_set, hplib_spinLock_Type_LOL);
 
 
     /*******************************************/
@@ -326,6 +322,7 @@ int main(int argc, char **argv)
     /*******************************************/
 
     /* create netapi */
+    our_netapi_default_cfg.rmHandle = rmClientServiceHandle;
     netapi_handle = netapi_init(NETAPI_SYS_MASTER,
                                 &our_netapi_default_cfg);
     if (netapi_handle == NULL)