git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sleep in control plane thread
[dpdk.git]
/
lib
/
librte_eal
/
common
/
include
/
generic
/
rte_cycles.h
diff --git
a/lib/librte_eal/common/include/generic/rte_cycles.h
b/lib/librte_eal/common/include/generic/rte_cycles.h
index
73d1fa7
..
a770562
100644
(file)
--- a/
lib/librte_eal/common/include/generic/rte_cycles.h
+++ b/
lib/librte_eal/common/include/generic/rte_cycles.h
@@
-147,7
+147,10
@@
extern void
static inline void
rte_delay_ms(unsigned ms)
{
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);
}
/**
}
/**