]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/common/include/generic/rte_cycles.h
sleep in control plane thread
[dpdk.git] / lib / librte_eal / common / include / generic / rte_cycles.h
index 73d1fa7b923d5d172cfca71bab54474c7ff7c8f9..a770562578949c6d72b50282c4d2238e31e198cc 100644 (file)
@@ -147,7 +147,10 @@ extern void
 static inline void
 rte_delay_ms(unsigned ms)
 {
-       rte_delay_us(ms * 1000);
+       if (rte_lcore_id() == LCORE_ID_ANY)
+               usleep(ms * 1000);
+       else
+               rte_delay_us(ms * 1000);
 }
 
 /**