]> git.droids-corp.org - dpdk.git/blobdiff - lib/ring/rte_ring_generic_pvt.h
crypto/mlx5: add maximum segments configuration
[dpdk.git] / lib / ring / rte_ring_generic_pvt.h
index 532deb5e7aeb7b2b97d008d1364a42fe4ddbd65d..c95ad7e12c027c6c4eddc36924f63c9c933d9b35 100644 (file)
@@ -23,8 +23,7 @@ __rte_ring_update_tail(struct rte_ring_headtail *ht, uint32_t old_val,
         * we need to wait for them to complete
         */
        if (!single)
-               while (unlikely(ht->tail != old_val))
-                       rte_pause();
+               rte_wait_until_equal_32(&ht->tail, old_val, __ATOMIC_RELAXED);
 
        ht->tail = new_val;
 }