app/testpmd: fix use of indirect action after port close
[dpdk.git] / app / test / test_ring_stress_impl.h
index 2825a9d..62f046a 100644 (file)
@@ -360,7 +360,7 @@ test_mt1(int (*test)(void *))
        /* signal worker to start test */
        __atomic_store_n(&wrk_cmd, WRK_CMD_RUN, __ATOMIC_RELEASE);
 
-       usleep(run_time * US_PER_S);
+       rte_delay_us(run_time * US_PER_S);
 
        /* signal worker to start test */
        __atomic_store_n(&wrk_cmd, WRK_CMD_STOP, __ATOMIC_RELEASE);