From bcaa44ced6fe456835f3f73d184ab2345e39d367 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Mon, 26 Oct 2020 11:27:13 +0100 Subject: avf: use atomic store instead of barrier Type: improvement Change-Id: Ifea5f0c2fecb99fd320a2e1141f4b4f0d6a793ca Signed-off-by: Damjan Marion --- src/plugins/avf/input.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/plugins/avf/input.c') diff --git a/src/plugins/avf/input.c b/src/plugins/avf/input.c index 0ccf7721835..9d677ab96d5 100644 --- a/src/plugins/avf/input.c +++ b/src/plugins/avf/input.c @@ -125,8 +125,7 @@ avf_rxq_refill (vlib_main_t * vm, vlib_node_runtime_t * node, avf_rxq_t * rxq, n_alloc -= 8; } - CLIB_MEMORY_STORE_BARRIER (); - *(rxq->qrx_tail) = slot; + clib_atomic_store_rel_n (rxq->qrx_tail, slot); } -- cgit 1.2.3-korg