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
distributor: fix livelock on flush
[dpdk.git]
/
lib
/
librte_distributor
/
rte_distributor.c
diff --git
a/lib/librte_distributor/rte_distributor.c
b/lib/librte_distributor/rte_distributor.c
index
9fa05f6
..
21eb1fb
100644
(file)
--- a/
lib/librte_distributor/rte_distributor.c
+++ b/
lib/librte_distributor/rte_distributor.c
@@
-542,6
+542,9
@@
rte_distributor_flush_v1705(struct rte_distributor *d)
while (total_outstanding(d) > 0)
rte_distributor_process(d, NULL, 0);
while (total_outstanding(d) > 0)
rte_distributor_process(d, NULL, 0);
+ /* wait 10ms to allow all worker drain the pkts */
+ rte_delay_us(10000);
+
/*
* Send empty burst to all workers to allow them to exit
* gracefully, should they need to.
/*
* Send empty burst to all workers to allow them to exit
* gracefully, should they need to.