This commit adds the following:
authorTinku Mannan <tmannan@ti.com>
Mon, 13 May 2013 15:25:48 +0000 (11:25 -0400)
committerTinku Mannan <tmannan@ti.com>
Mon, 13 May 2013 15:25:48 +0000 (11:25 -0400)
1. Disable netapi logging by default.
2. Cleanup.
3. Incorporate remaining code review comments.

ti/runtime/netapi/netapi_util.h
ti/runtime/netapi/netcp_cfg.h
ti/runtime/netapi/src/netapi_init.c
ti/runtime/netapi/test/ifdma_test.c
ti/runtime/netapi/test/net_test_config.txt
ti/runtime/netapi/test/net_test_loopback.c [changed mode: 0644->0755]
ti/runtime/netapi/test/net_test_router.c
ti/runtime/netapi/test/net_test_thread_utils.c
ti/runtime/netapi/test/net_test_utils.c

index 83445f78a9d485c221469e13c41384d7baada1f3..1d1a1f13baf78975d2bc6d19f4dbdf1bda1b85fd 100755 (executable)
@@ -48,7 +48,7 @@
 #include "./src/netapi_loc.h"
 
 
-#define NETAPI_DEBUG
+//#define NETAPI_DEBUG
 #ifdef NETAPI_DEBUG
 #define netapi_Log printf
 #else
index 29a144bee085e5ec19bd1a43738eec8df4a2c766..f59ace322d7a5a1b2980f44c546084430f72bd6a 100755 (executable)
@@ -116,7 +116,7 @@ Cppi_HostDesc->origBuffPtr
  * @ingroup cfg_constants
  * @brief  This defines the handle to a NETCP configured Flow. A Flow is a set of pktlib heaps that h/w can use to obtain free packets.
  */
-typedef void* NETCP_CFG_FLOW_HANDLE_T;
+typedef NETCP_CFG_FLOW_T* NETCP_CFG_FLOW_HANDLE_T;
 
 /**
  * @ingroup cfg_constants
@@ -125,24 +125,16 @@ typedef void* NETCP_CFG_FLOW_HANDLE_T;
  * The default flow uses the default pktlib heap created by netapi_init; i.e.
  * NETCP will allocate descriptors and buffers for received packets from this heap.
  */
-#define NETCP_DEFAULT_FLOW  (NETCP_CFG_FLOW_HANDLE_T*) NULL
+#define NETCP_DEFAULT_FLOW  (NETCP_CFG_FLOW_HANDLE_T) NULL
 
 
-/**
- * @ingroup cfg_constants
- * @brief  Handle to a NETCP route.
- * @details Application to use this handle to identify a NETCP route. A NETCP route defines the
- *          pktio channel for packets received by NETCP
- *    and the flow to use.
- */
-typedef void* NETCP_CFG_ROUTE_HANDLE_T;
 
 /**
  * @def NETCP_DEFAULT_ROUTE
  * This defines the NETCP default route.  This route has NETCP send received packets to the default NETCP 
  * pktio channel using descriptors and buffers from the default flow. The default route is created by netapi_init
  */
-#define NETCP_DEFAULT_ROUTE (NETCP_CFG_ROUTE_HANDLE_T*) NULL
+#define NETCP_DEFAULT_ROUTE (NETCP_CFG_ROUTE_HANDLE_T) NULL
 
 
 /**
@@ -159,6 +151,19 @@ typedef struct NETCP_CFG_ROUTE_Tag
    PKTIO_HANDLE_T*   p_dest_q;   /**<NULL for default destination queue */
 } NETCP_CFG_ROUTE_T;
 
+
+/**
+ * @ingroup cfg_constants
+ * @brief  Handle to a NETCP route.
+ * @details Application to use this handle to identify a NETCP route. A NETCP route defines the
+ *          pktio channel for packets received by NETCP
+ *    and the flow to use.
+ */
+typedef NETCP_CFG_ROUTE_T* NETCP_CFG_ROUTE_HANDLE_T;
+
+
+
+
 /**
  * @ingroup cfg_constants
  * @def NETCP_CFG_ACTION_DISCARD
index ab77fcc0596aa6789d4f704d806ad615b941473d..69934e7d51adc28cd6e9974de552e73e3693d206 100755 (executable)
@@ -818,9 +818,9 @@ void netapi_dump_internal_heap_stats(void)
 {
     Pktlib_HeapStats    pktLibHeapStats;
     Pktlib_getHeapStats(netapi_get_global()->nwal_context.pa2sa_heap,&pktLibHeapStats);
-    netapi_Log("PA2SA(ingress) stats>  #free=%d #zb=%d #garbage=%d\n", pktLibHeapStats.numFreeDataPackets,
+    printf("PA2SA(ingress) stats>  #free=%d #zb=%d #garbage=%d\n", pktLibHeapStats.numFreeDataPackets,
                                 pktLibHeapStats.numZeroBufferPackets, pktLibHeapStats.numPacketsinGarbage);
-    netapi_Log("               >  #dataBufThreshStatus=%d #dataBufStarvCounter=%d #zBufThreshStatus=%d #zBufStarvCounter=%d \n",
+    printf("               >  #dataBufThreshStatus=%d #dataBufStarvCounter=%d #zBufThreshStatus=%d #zBufStarvCounter=%d \n",
                         pktLibHeapStats.dataBufferThresholdStatus,pktLibHeapStats.dataBufferStarvationCounter,
                         pktLibHeapStats.zeroDataBufferThresholdStatus, pktLibHeapStats.zeroDataBufferStarvationCounter);
 #if 0
@@ -832,9 +832,9 @@ netapi_Log("               >  #dataBufThreshStatus=%d #dataBufStarvCounter=%d #z
                         pktLibHeapStats.zeroDataBufferThresholdStatus, pktLibHeapStats.zeroDataBufferStarvationCounter);
 #endif
     Pktlib_getHeapStats(netapi_get_global()->nwal_context.sa2pa_heap,&pktLibHeapStats);
-    netapi_Log("SA2PA stats>  #free=%d #zb=%d #garbage=%d\n", pktLibHeapStats.numFreeDataPackets,
+    printf("SA2PA stats>  #free=%d #zb=%d #garbage=%d\n", pktLibHeapStats.numFreeDataPackets,
                                 pktLibHeapStats.numZeroBufferPackets, pktLibHeapStats.numPacketsinGarbage);
-    netapi_Log("               >  #dataBufThreshStatus=%d #dataBufStarvCounter=%d #zBufThreshStatus=%d #zBufStarvCounter=%d \n",
+    printf("               >  #dataBufThreshStatus=%d #dataBufStarvCounter=%d #zBufThreshStatus=%d #zBufStarvCounter=%d \n",
                         pktLibHeapStats.dataBufferThresholdStatus,pktLibHeapStats.dataBufferStarvationCounter,
                         pktLibHeapStats.zeroDataBufferThresholdStatus, pktLibHeapStats.zeroDataBufferStarvationCounter);
 
index 505decf0811ad54811c1fb2c8126878d6d81507b..a0fbd1775294c3e6b9693e2e26a7acfcdc827408 100755 (executable)
@@ -271,6 +271,12 @@ int main(int argc, char **argv)
     /* create netapi */
     netapi_handle = netapi_init(NETAPI_SYS_MASTER, &our_netapi_default_cfg);
     printf("main: returned from netapi_init\n");
+
+    /* Un-configure rules for execption packet handling */
+    netapi_netcpCfgExceptions(netapi_handle,
+                              NETCP_CFG_ALL_EXCEPTIONS,
+                              NETCP_CFG_ACTION_DISCARD, 
+                              (NETCP_CFG_ROUTE_HANDLE_T) NULL);
     /* open the main heap */
     OurHeap = Pktlib_findHeapByName("netapi");
     if (!OurHeap) {printf("findheapbyname fail\n"); exit(1);}
index 598dfe5755669c9883c72870e8bb57411a93ae23..65bfee24e28c0a22a804b3751cbfc2a377300b2f 100755 (executable)
@@ -5,10 +5,10 @@ fp1 = 3 2-2
 fp2 = 4 3-3
 #mac0 = mac-address switch-port
 mac0 = 00-01-02-03-05-05 sp0
-#mac1 = 00-01-02-03-05-06 sp1
+mac1 = 00-01-02-03-06-07 sp1
 #ip0 = ip-address mac-interface
 ip0 = 10.0.0.100  mac0
-ip1 = 10.0.1.100  mac0
+ip1 = 10.0.1.100  mac1
 ip2 = 10.0.2.100  mac0
 local_ipsec_ip = 192.168.1.100
 remote_ipsec_ip = 192.168.1.10
old mode 100644 (file)
new mode 100755 (executable)
index 99287fe..3730bf7
@@ -866,12 +866,9 @@ void setup_netTestDSPFastPath(NETAPI_T handle)
     memset(&dsp_classi, 0, sizeof (NETCP_CFG_CLASSIFIER_T));
     memset(&dsp_route, 0, sizeof (NETCP_CFG_ROUTE_T));
     char dsp_name[32];
-    //for (i = 0; i < CPU_NUM_REM_FAST_PATH_CORES; i++)
-    for (i = 0; i < 1; i++)
+    for (i = 0; i < CPU_NUM_REM_FAST_PATH_CORES; i++)
     {
         sprintf(&dsp_name[0],"%s%d","dsp_chan", i);
-        printf("netTest_utilCreateInterfaces: %s\n",&dsp_name[0]);
-
         dsp_pktio_cfg.flags1 = PKTIO_RX;
         dsp_pktio_cfg.flags2 = PKTIO_GLOBAL | PKTIO_PKT;
         dsp_pktio_cfg.qnum = TEST_NWAL_BASE_REM_FP_RX_PKT_QUEUE + i;
@@ -883,13 +880,9 @@ void setup_netTestDSPFastPath(NETAPI_T handle)
                                                (PKTIO_CB)recv_cb,
                                                &dsp_pktio_cfg,
                                                &err);
-        if (dsp_pktio_channels[i])
-        {
-            printf("setup_netTestDSPFastPath: sucess for core %d\n", i);
-        }
-        else
+        if (!dsp_pktio_channels[i])
         {
-            printf("setup_netTestDSPFastPath: failed for core %d\n", i);
+            netapi_Log("setup_netTestDSPFastPath: failed for core %d\n", i);
         }
 
         dsp_classi.classType =NETCP_CFG_CLASS_TYPE_L4;
@@ -903,7 +896,6 @@ void setup_netTestDSPFastPath(NETAPI_T handle)
        
         dsp_route.p_flow = (NETCP_CFG_FLOW_T*)NETCP_DEFAULT_FLOW;
         
-        
         dsp_classifers[i] = netapi_netcpCfgAddClass(handle, 
                                 &dsp_classi, 
                                 (NETCP_CFG_ROUTE_HANDLE_T) &dsp_route, 
@@ -911,15 +903,12 @@ void setup_netTestDSPFastPath(NETAPI_T handle)
                                 NULL,
                                 &err);
 
-        if (err == NETAPI_ERR_OK)
-        {
-            printf("setup_netTestDSPFastPath: netapi_netcpCfgAddClass sucess for core %d\n", i);
-        }
-        else
+        if (err != NETAPI_ERR_OK)
         {
-            printf("setup_netTestDSPFastPath: netapi_netcpCfgAddClass failed for core %d\n", i);
+            netapi_Log("setup_netTestDSPFastPath: netapi_netcpCfgAddClass failed for core %d\n", i);
         }
     }
+    printf("DSP Path fath setup complete\n");
 }
 
 void teardown_netTestDSPFastPath()
@@ -932,26 +921,19 @@ void teardown_netTestDSPFastPath()
         netapi_netcpCfgDelClass(netapi_handle,
                                 dsp_classifers[i],
                                 &err);
-        if (err == NETAPI_ERR_OK)
-        {
-            printf("teardown_netTestDSPFastPath: netapi_netcpCfgDelClass sucess for core %d\n", i);
-        }
-        else
+        if (err != NETAPI_ERR_OK)
         {
             printf("teardown_netTestDSPFastPath: netapi_netcpCfgDelClass failed for core %d\n", i);
         }
 
         netapi_pktioDelete(dsp_pktio_channels[i],
                            &err);
-        if (err == NETAPI_ERR_OK)
-        {
-            printf("teardown_netTestDSPFastPath: netapi_pktioDelete sucess for core %d\n", i);
-        }
-        else
+        if (err != NETAPI_ERR_OK)
         {
             printf("teardown_netTestDSPFastPath: netapi_pktioDelete failed for core %d\n", i);
         }
     }
+    printf("DSP Path fath teardown complete\n");
 }
 #endif
 
@@ -970,10 +952,9 @@ void slow_path_thread(uint32_t index)
     cpu_set_t cpu_set;
 
     thread_num = netTestCfg.sp_thread_num[index];
-    printf("slow_path_thread, mypid: %d, core_id %d\n", gettid(), netTestCfg.sp_thread_num[index]);
+    netapi_Log("slow_path_thread, mypid: %d, core_id %d\n", gettid(), netTestCfg.sp_thread_num[index]);
 
     CPU_ZERO( &cpu_set);
-    printf("slow_path_thread: settting up for thread number %d\n", thread_num);
 #ifdef CORTEX_A8
     for (i = netTestCfg.sp_proc_start[index]; i <= netTestCfg.sp_proc_end[index];i++)
     {
@@ -1002,10 +983,9 @@ void slow_path_thread(uint32_t index)
     scheduler[thread_num]->config.yield = TRUE;
     scheduler[thread_num]->config.pollGarbageQ = TRUE;
     scheduler[thread_num]->config.pollCtrlQ = TRUE;
-
+    printf("Slow Path thread: %d setup complete, running on ARM CORE: %d\n", i,i);
     /* Entry point to scheduler */
     netapi_schedRun(scheduler[thread_num], &err);
-    printf(">net_test: core %d worker thread done\n",thread_num);
 
     netapi_shutdown(worker_nh[thread_num]);
 }
@@ -1021,22 +1001,20 @@ void fast_path_thread(uint32_t index)
     cpu_set_t cpu_set;
 
     CPU_ZERO( &cpu_set);
-    printf("fast_path_thread: settting up for thread number %d\n", netTestCfg.fp_thread_num[index]);
     thread_num = netTestCfg.fp_thread_num[index];
 #ifdef CORTEX_A8
     for (i = netTestCfg.fp_proc_start[index]; i <= netTestCfg.fp_proc_end[index];i++)
     {
-        printf("fast_path_thread: setting cpu %d to cpu_set\n", i);
         CPU_SET( 0, &cpu_set);
     }
     hplib_utilSetupThread(thread_num, &cpu_set);
 #else
     for (i = netTestCfg.fp_proc_start[index]; i <= netTestCfg.fp_proc_end[index];i++)
     {
-        printf("fast_path_thread: start core %d, end core %d\n",
+        netapi_Log("fast_path_thread: start core %d, end core %d\n",
                 netTestCfg.fp_proc_start[index],
                 netTestCfg.fp_proc_end[index]);
-        printf("fast_path_thread: setting cpu %d to cpu_set\n", i);
+        netapi_Log("fast_path_thread: setting cpu %d to cpu_set\n", i);
         CPU_SET( i, &cpu_set);
     }
     hplib_utilSetupThread(thread_num, &cpu_set);
@@ -1066,9 +1044,8 @@ void fast_path_thread(uint32_t index)
     scheduler[thread_num]->config.pollCtrlQ = FALSE;
      //sleep(100000);
    /* Entry point to scheduler */
-     netapi_schedRun(scheduler[thread_num], &err);
-    printf(">net_test: core %d worker thread done\n",thread_num);
-
+    printf("Fast Path thread: %d setup complete, running on ARM CORE: %d\n", i,i);
+    netapi_schedRun(scheduler[thread_num], &err);
     netapi_pktioClose(rx_chan, &err);
 
     netapi_pktioClose(sb_rx_chan, &err);
@@ -1104,7 +1081,7 @@ int main(int argc, char **argv)
     }
     if (fpr == NULL)
     {
-       printf("Cant open config file: filepath %s, %s\n", input_file_name, strerror(errno));
+        printf("Cant open config file: filepath %s, %s\n", input_file_name, strerror(errno));
         exit(1);
     }
     else
@@ -1170,7 +1147,6 @@ int main(int argc, char **argv)
 
     open_pktio_tx_channels();
 
-    printf("net_test: %d bytes left in our CMA area\n", netapi_getBufMemRemainder());
     /* create scheduler instance */
     our_sched =netapi_schedOpen(netapi_handle,&our_sched_cfg, &err);
     if (!our_sched) {printf("sched create failed\n"); exit(1);}
@@ -1183,7 +1159,10 @@ int main(int argc, char **argv)
     p_trie_sa_rx = trie_new();
     p_trie_sa_tx = trie_new();
     if (!p_trie_sa_rx || !p_trie_sa_tx)
-        {printf("trie alloc for SA  failed\n"); exit(1);}
+    {
+        printf("trie alloc for SA  failed\n");
+        exit(1);
+    }
 
 #ifdef netTest_DSP_FASTPATH
     setup_netTestDSPFastPath(netapi_handle);
@@ -1194,44 +1173,6 @@ int main(int argc, char **argv)
 
 #ifdef netTest_MULTI_THREAD
 {
-#if 0
-    nwalGlobCxtInfo_t nwalGlobCxt;
-    nwalLocCxtInfo_t nwalLocCxt;
-    int count;
-    NETAPI_HANDLE_T * n = (NETAPI_HANDLE_T *) netapi_handle;
-
-    nwal_getGlobCxtInfo(((NETAPI_GLOBAL_T*) (n->global))->nwal_context.nwalInstHandle,&nwalGlobCxt);
-
-
-    printf("*******NWAL Global Context Info Dump Begin *******\n");
-    printf("rxPaSaFlowId:%d,rxSaPaFlowId:%d rxDefPktQ:0x%x \n",
-                       nwalGlobCxt.rxPaSaFlowId,nwalGlobCxt.rxSaPaFlowId,
-                        nwalGlobCxt.rxDefPktQ);
-    printf("defFlowQ:0x%x,passCppiHandle:0x%x extErr:%d \n",
-                       nwalGlobCxt.defFlowQ,nwalGlobCxt.passCppiHandle,
-                       nwalGlobCxt.extErr);
-    for(count=0;count < nwalGlobCxt.numPaPDSPs;count++)
-    {
-        printf("NetCP PASS PDSP - %d Version:0x%x \n",
-                      count,nwalGlobCxt.pdspVer[count]);
-    }
-    printf("*******NWAL Global Context Info Dump End *******\n\n");
-
-
-    nwal_getLocCxtInfo(((NETAPI_GLOBAL_T*) (n->global))->nwal_context.nwalInstHandle,&nwalLocCxt);
-    printf("*******NWAL Local Context Info Dump Begin *******\n");
-    printf("rxCtlQ:%d,rxL4PktQ:%d \n",
-                        nwalLocCxt.rxCtlQ,
-                        nwalLocCxt.rxL4PktQ);
-    printf("rxPktFlowId:0x%x,rxCtlFlowId:0x%x extErr:%d \n",
-                       nwalLocCxt.rxPktFlowId
-                       ,nwalLocCxt.rxCtlFlowId,
-                       nwalLocCxt.extErr);
-    
-    printf("*******NWAL Local Context Info Dump End *******\n\n");
-
-#endif
-
     /* create and set affinity of slow path and fast path threads to
     * specific CPU cores as specified in the net_test_config.txt file */
     netTest_utilCreateSpFpThreads(netTestCfg.num_sp_threads, 
@@ -1239,13 +1180,21 @@ int main(int argc, char **argv)
                                   netTestCfg.num_fp_threads,
                                   (NET_TEST_FUNC_PTR) fast_path_thread);
 
+    printf("\n net_test_loopback running ....\n");
+    printf("\n Enter 's' for stats or 'q'to quit net_test_loopback app, or 'h' for help\n");
+
     char c;
         //this thread of execution (main) now just waits on user input
         for(;;)
         {
            printf(">");
            c=getchar();
-           if (c=='q') {QUIT=1;break;}
+           if (c=='q')
+            {
+                QUIT=1;
+                printf("net_test_loopback: please wait for application shutdown and resource cleanup\n");
+                break;
+           }
            else if (c=='s') netTest_utilsStatsCb(netapi_handle, &netcp_stats);
            else if (c=='h') printf("'q' to quit,  's' for stats, 'h' for help\n");
         }
@@ -1275,7 +1224,9 @@ int main(int argc, char **argv)
 #ifdef netTest_DSP_FASTPATH
     teardown_netTestDSPFastPath();
 #endif
+
     netapi_shutdown(netapi_handle);
+    printf("net_test shutdown complete\n");
 
 }
 
index 9ba8d5ea3ee56b24180849775e64940a7a9b92f0..31793e93cf2e59c400d076c42c06d70ee6ff4dc6 100755 (executable)
@@ -248,7 +248,7 @@ void open_pktio_tx_channels()
             PKTIO_CFG_T cfg;
             cfg.fast_path_cfg.fp_send_option = PKTIO_FP_NO_CRYPTO_NO_CKSUM_PORT;
             cfg.fast_path_cfg.txPktInfo= &txPktInfoNoCrypto;
-            //netapi_pktioControl(netcp_tx_chan_no_crypto, NULL, &cfg, &control, &err);
+            netapi_pktioControl(netcp_tx_chan_no_crypto, NULL, &cfg, &control, &err);
         }
     }
     /* open netcp default  TX for ESP packets */
@@ -267,7 +267,7 @@ void open_pktio_tx_channels()
             PKTIO_CFG_T cfg;
             cfg.fast_path_cfg.fp_send_option = PKTIO_FP_ESP_PORT;
             cfg.fast_path_cfg.txPktInfo= &txPktInfoESP;
-            //netapi_pktioControl(netcp_tx_chan_esp, NULL, &cfg, &control, &err);
+            netapi_pktioControl(netcp_tx_chan_esp, NULL, &cfg, &control, &err);
         }
     }
 
@@ -287,7 +287,7 @@ void open_pktio_tx_channels()
             PKTIO_CFG_T cfg;
             cfg.fast_path_cfg.fp_send_option = PKTIO_FP_AH_PORT;
             cfg.fast_path_cfg.txPktInfo= &txPktInfoAH;
-            //netapi_pktioControl(netcp_tx_chan_ah, NULL, &cfg, &control, &err);
+            netapi_pktioControl(netcp_tx_chan_ah, NULL, &cfg, &control, &err);
         }
     }
 }
index e695641ad2d5689ca5b7c23a05803132b5bf5b7f..8abdc2383bc5a8da1d061fae830a8de004a42675 100755 (executable)
@@ -93,13 +93,17 @@ void netTest_utilRemoveSpFpThreads(uint8_t num_sp_threads, uint8_t num_fp_thread
 {
     int i;
     //wait for completion 
-    netapi_Log("main task now pending on slow/fast path completion\n");
+    netapi_Log("net_test loopback main task now pending on slow/fast path completion\n");
     for (i = 0; i < num_sp_threads; i++)
-            pthread_join( sp_threads[i], NULL );
-
+    {
+        pthread_join( sp_threads[i], NULL );
+        printf("Slow Path thread %d has exited\n", i);
+    }
     for (i = 0; i < num_fp_threads; i++)
-            pthread_join( fp_threads[i], NULL );
-
+    {
+        pthread_join( fp_threads[i], NULL );
+        printf("Fast Path thread %d has exited\n", i);
+    }
     free( sp_threads);
     free (fp_threads);
 }
index 4d5b4fc09ef4dc758aad68373b1719128c9db8ff..e2db46422fceb6a2717bee01c170e062c8638bab 100755 (executable)
@@ -339,10 +339,10 @@ void netTest_utilPrintIPSecStats(Sa_IpsecStats_t     *p_saIpsecStats, nwal_saAAL
         netapi_Log("------------- IPSec RX (Decryption Channel) Stats BEGIN --\n");
     }
 #endif
-    netapi_Log("\nAutentication mode: %d, Encryption Mode: %d\n", auth, cipher);
-    netapi_Log("IPSec replayOld:0x%x,replayDup:0x%x,authFail:0x%x \n",
+    printf("\nAutentication mode: %d, Encryption Mode: %d\n", auth, cipher);
+    printf("IPSec replayOld:0x%x,replayDup:0x%x,authFail:0x%x \n",
                    p_saIpsecStats->replayOld,p_saIpsecStats->replayDup,p_saIpsecStats->authFail);
-    netapi_Log("IPSec txESN:0x%x,rxESN:0x%x,pktEncHi:0x%x,pktEncLo:0x%x,pktDecHi:0x%x,pktDecLo:0x%x \n",
+    printf("IPSec txESN:0x%x,rxESN:0x%x,pktEncHi:0x%x,pktEncLo:0x%x,pktDecHi:0x%x,pktDecLo:0x%x \n",
                    p_saIpsecStats->txESN,p_saIpsecStats->rxESN,p_saIpsecStats->pktEncHi,
                    p_saIpsecStats->pktEncLo,p_saIpsecStats->pktDecHi,p_saIpsecStats->pktDecLo);
 }
@@ -350,8 +350,8 @@ void netTest_utilPrintIPSecStats(Sa_IpsecStats_t     *p_saIpsecStats, nwal_saAAL
 void netTest_utilPrintDataModeStats(Sa_DataModeStats_t     *p_saDataModeStats, nwal_saAALG auth, nwal_saEALG cipher)
 {
 
-    netapi_Log("\nAutentication mode: %d, Encryption Mode: %d\n", auth, cipher);
-    netapi_Log(" Packets processedHi: 0x%x, Packets processed Lo:0x%x\n",
+    printf("\nAutentication mode: %d, Encryption Mode: %d\n", auth, cipher);
+    printf(" Packets processedHi: 0x%x, Packets processed Lo:0x%x\n",
             p_saDataModeStats->pktHi, p_saDataModeStats->pktLo);
 }
 
@@ -552,9 +552,7 @@ void parse_dsp_mac(char * p_mac_str)
 {
     if (strlen(&p_mac_str[0]))
     {
-        printf("parse_dsp_mac(string): %s\n", p_mac_str);
         sscanf(p_mac_str,"mac%d",&netTestCfg.dsp_mac);
-        printf("parse_dsp_mac(integer): mac: %d\n", netTestCfg.dsp_mac);
     }
 }
 
@@ -562,9 +560,7 @@ void parse_dsp_ip(char * p_ip_str)
 {
     if (strlen(&p_ip_str[0]))
     {
-        printf("parse_dsp_ip: %s\n", p_ip_str);
         sscanf(p_ip_str,"ip%d",&netTestCfg.dsp_ip);
-        printf("parse_dsp_ip: ip:  %d\n", netTestCfg.dsp_ip);
     }
 }
 
@@ -886,7 +882,7 @@ void netTest_utilParseThreadParams(netTestConfigFile_t *pConfig)
             netTest_utilParseThreadConfig(&pConfig->fp[i][0],
                                          (uint8_t*)&netTestCfg.fp_proc_start[i],
                                          (uint8_t*)&netTestCfg.fp_proc_end[i]);
-            printf("netTest_utilParseThreadParams: fp start[%d]: %d, fp end[%d]: %d\n",
+            netapi_Log("netTest_utilParseThreadParams: fp start[%d]: %d, fp end[%d]: %d\n",
                     i,
                     netTestCfg.fp_proc_start[i],
                     i,