]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/netapi.git/commitdiff
SDOCM00113664: The default exception handler setup inside netapi_int should be made...
authorTinku Mannan <tmannan@ti.com>
Tue, 11 Nov 2014 20:56:44 +0000 (15:56 -0500)
committerTinku Mannan <tmannan@ti.com>
Tue, 11 Nov 2014 20:56:44 +0000 (15:56 -0500)
ti/runtime/netapi/src/netapi.c
ti/runtime/netapi/test/ifdma_test.c
ti/runtime/netapi/test/net_test_bench.c
ti/runtime/netapi/test/net_test_loopback.c
ti/runtime/netapi/test/net_test_router.c
ti/runtime/netapi/test/nt_bridge.c

index a97feb7bca2a45d2e501a16446415889e6690e9b..5cc8e52ac9ce10f990005271dc866ab189d4a55a 100755 (executable)
@@ -262,7 +262,6 @@ NETAPI_T netapi_init(int                master,
         {
             goto ERR_netapi_init;
         }
-        netapi_netcpCfgExceptions(p, NETCP_CFG_ALL_EXCEPTIONS, NETCP_CFG_ACTION_TO_SW, (NETCP_CFG_ROUTE_HANDLE_T) NULL);
     }
     /* PROC_MASTER case */
     else if (master==NETAPI_PROC_MASTER)
@@ -346,10 +345,6 @@ void netapi_shutdown(NETAPI_T h)
     {
     
         /* Un-configure rules for execption packet handling */
-        netapi_netcpCfgExceptions(p,
-                              NETCP_CFG_ALL_EXCEPTIONS,
-                              NETCP_CFG_ACTION_DISCARD,
-                              (NETCP_CFG_ROUTE_HANDLE_T) NULL);
 
         /* close nwal master (per soc) context */
         nwal_delete(pnetapiShm->netapi_global.nwal_context.nwalInstHandle);
index d02a530debf4ce1c104d5fc1d2cc05af675f7c96..657f3ddccb78293237cda0145692b6f4a9915c8d 100755 (executable)
@@ -280,10 +280,6 @@ int main(int argc, char **argv)
     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 52bb2832dce9c5455bdbfd1b0f69e2f15f733d48..8e3f8865fddd5cefd69e9ebf3e82fdea50bdee4c 100755 (executable)
@@ -332,7 +332,6 @@ int main(int argc, char **argv)
         printf("main: netapi_init failure, exiting\n");
         exit(1);
     }
-    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");
index 299c15bab29048aac042076bb76ea7be7fdb461e..d9adaf11bda2461aab25498a35bfe29d70e12427 100755 (executable)
@@ -1238,10 +1238,6 @@ int main(int argc, char **argv)
     }
 
     /* configure expection packet handling with netapi */
-    netapi_netcpCfgExceptions(netapi_handle,
-                              NETCP_CFG_ALL_EXCEPTIONS,
-                              NETCP_CFG_ACTION_DISCARD, 
-                              (NETCP_CFG_ROUTE_HANDLE_T) NULL);
     expPkt_appid = netapi_netcpCfgExceptions(netapi_handle, 
                                              7,
                                              NETCP_CFG_ACTION_TO_SW,
index 48837d410111a8d17031cfaf147929088f8472e0..66f7cf5f9662c950845f6ef4e829042d31872996 100755 (executable)
@@ -531,8 +531,10 @@ int main(int argc, char **argv)
         exit(1);
     }
     /* configure expection packet handling with netapi */
-    netapi_netcpCfgExceptions(netapi_handle, NETCP_CFG_ALL_EXCEPTIONS, NETCP_CFG_ACTION_DISCARD, (NETCP_CFG_ROUTE_HANDLE_T) NULL);
-    expPkt_appid = netapi_netcpCfgExceptions(netapi_handle, 7, NETCP_CFG_ACTION_TO_SW, (NETCP_CFG_ROUTE_HANDLE_T) NULL);
+    expPkt_appid = netapi_netcpCfgExceptions(netapi_handle,
+                                             7,
+                                             NETCP_CFG_ACTION_TO_SW,
+                                             (NETCP_CFG_ROUTE_HANDLE_T) NULL);
 
     /* open the main heap */
     ourHeap = Pktlib_findHeapByName("netapi");
index 436cff3d1d8638d4606f7c86aeea6293158cc2f1..021d9b1b8837c37bc7049a7a2d97fc6e2b420891 100755 (executable)
@@ -852,10 +852,6 @@ int main(int argc, char **argv)
         exit(1);
     }
     
-    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");