sleep in control plane thread
[dpdk.git] / lib / librte_eal / common / include / generic / rte_cycles.h
index 73d1fa7..a770562 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);
 }
 
 /**