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
test/sched: add subport config flexibility
[dpdk.git]
/
app
/
test
/
test_barrier.c
diff --git
a/app/test/test_barrier.c
b/app/test/test_barrier.c
index
a0b4704
..
43b5f62
100644
(file)
--- a/
app/test/test_barrier.c
+++ b/
app/test/test_barrier.c
@@
-92,12
+92,14
@@
plock_lock(struct plock *l, uint32_t self)
other = self ^ 1;
l->flag[self] = 1;
+ rte_smp_wmb();
l->victim = self;
store_load_barrier(l->utype);
while (l->flag[other] == 1 && l->victim == self)
rte_pause();
+ rte_smp_rmb();
}
static void