net_test_loopback: only teardown DSP fastpath classifier and pktio channel if NETAPI_...
authorTinku Mannan <tmannan@ti.com>
Wed, 18 Jun 2014 14:22:01 +0000 (10:22 -0400)
committerTinku Mannan <tmannan@ti.com>
Wed, 18 Jun 2014 14:22:01 +0000 (10:22 -0400)
ti/runtime/netapi/test/net_test_loopback.c

index e94281931f51e262b46d49a22307ff8638fe11e9..5ee5dbb1a9374e18920cce991761fb340752b0a4 100755 (executable)
@@ -1330,7 +1330,10 @@ int main(int argc, char **argv)
     /* close pktio channels we opened via open_pktio_tx_channels() */
     close_pktio_channels();
 #ifdef netTest_DSP_FASTPATH
-    teardown_netTestDSPFastPath();
+    if (masterType == NETAPI_SYS_MASTER)
+    {
+        teardown_netTestDSPFastPath();
+    }
 #endif
 
     netapi_shutdown(netapi_handle);