summaryrefslogtreecommitdiffstats
path: root/src/plugins/memif
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2021-05-17 16:49:07 +0200
committerDamjan Marion <damarion@cisco.com>2021-05-17 16:52:08 +0200
commit263f381c9564b1438b3254988ca2b92810fe47aa (patch)
treeb7b6861d77d86c2fe21962749af07690162b3a12 /src/plugins/memif
parent3d2c6743f4e0958df3189c9e8e08e7d56f1e0df7 (diff)
memif: fix "remove barriers" commit
Type: fix Change-Id: I60bb0261c05bf7e25ca01c72780f1cd77fde7a9a Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins/memif')
-rw-r--r--src/plugins/memif/device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/memif/device.c b/src/plugins/memif/device.c
index befc0b50eab..7c1ac361789 100644
--- a/src/plugins/memif/device.c
+++ b/src/plugins/memif/device.c
@@ -315,8 +315,8 @@ memif_interface_tx_zc_inline (vlib_main_t * vm, vlib_node_runtime_t * node,
u16 head, tail;
retry:
- slot = tail = __atomic_load_n (&ring->tail, __ATOMIC_ACQUIRE);
- head = ring->head;
+ tail = __atomic_load_n (&ring->tail, __ATOMIC_ACQUIRE);
+ slot = head = ring->head;
n_free = tail - mq->last_tail;
if (n_free >= 16)