]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/netapi.git/blobdiff - ti/runtime/netapi/test/net_test_bench.c
SDOCM00113322: kernel RX UDP/TCP checksum offload to NETCP breaks user space tranport...
[keystone-rtos/netapi.git] / ti / runtime / netapi / test / net_test_bench.c
index 6917a259bca7d40ec13a2e02b03b39404698b774..80fbc547cb5496a51226f467d06a1fd13edcb760 100755 (executable)
@@ -211,7 +211,10 @@ NETCP_CFG_ROUTE_T  test_route=
 0,
 NULL,
 NULL,
-0//* to be filled in
+0,
+0,
+0,
+1
 };
 
 
@@ -303,6 +306,7 @@ int main(int argc, char **argv)
     Pktlib_HeapCfg heapCfg;
     long t1, t2 ;
     cpu_set_t cpu_set;
+    NETCP_CFG_ROUTE_T test_route;
 
 
      //install signal handler for ^c
@@ -373,12 +377,19 @@ printf("\n\n******STARTING RECV BENCHMARK (q to quit)*****\n\n");
 
 //now creaate a simple netcp rule
 //to get a lot of packets
+memset(&test_route, 0, sizeof(NETCP_CFG_ROUTE_T));
+test_route.valid_params = NETCP_CFG_VALID_PARAM_MATCH_ACTION_DEST;
+test_route.match_destination = NETCP_CFG_ACTION_TO_SW;
+test_route.routeType = 0;
+test_route.p_flow = NULL;
+test_route.p_dest_q = NULL;
+
 netapi_netcpCfgCreateMacInterface(
                   netapi_handle,
                   &all_mac[0],
                   NULL,
                   0,0,
-                  (NETCP_CFG_ROUTE_HANDLE_T)  NULL,
+                  (NETCP_CFG_ROUTE_HANDLE_T)  &test_route,
                   (NETCP_CFG_VLAN_T ) NULL ,  //future
                   0,
                   1,