diff options
Diffstat (limited to 'src/svm/svm_fifo.h')
-rw-r--r-- | src/svm/svm_fifo.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/svm/svm_fifo.h b/src/svm/svm_fifo.h index 07614b4dac9..d7146ae1fb0 100644 --- a/src/svm/svm_fifo.h +++ b/src/svm/svm_fifo.h @@ -235,7 +235,7 @@ svm_fifo_enqueue_nocopy (svm_fifo_t * f, u32 bytes) { 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 * |