commit | 0964985cdd99cf769582e0d9393de68a95b121b9 | [log] [tgz] |
---|---|---|
author | Florin Coras <fcoras@cisco.com> | Wed Feb 20 23:13:43 2019 -0800 |
committer | Damjan Marion <dmarion@me.com> | Thu Feb 21 12:26:51 2019 +0000 |
tree | 5a7f320c28f40676d7d23802fd48589230187a34 | |
parent | eb414435a188ea9b36ada69b8ccc12fafbb04eca [diff] [blame] |
svm: fix mem ordering for enqueue nocopy Change-Id: Ibc852f88747125a895415570349975d3b379a6f4 Signed-off-by: Florin Coras <fcoras@cisco.com>
diff --git a/src/svm/svm_fifo.h b/src/svm/svm_fifo.h index 07614b4..d7146ae 100644 --- a/src/svm/svm_fifo.h +++ b/src/svm/svm_fifo.h
@@ -235,7 +235,7 @@ { ASSERT (bytes <= svm_fifo_max_enqueue (f)); f->tail = (f->tail + bytes) % f->nitems; - f->cursize += bytes; + clib_atomic_fetch_add_rel (&f->cursize, bytes); } always_inline u8 *