]> git.droids-corp.org - dpdk.git/blobdiff - app/test-eventdev/test_order_atq.c
net/ena: fix build with GCC 12
[dpdk.git] / app / test-eventdev / test_order_atq.c
index 71215a07b6af1e26f56333f5b97e46f19e57130f..2fee4b4daa5febcf029b4ddfc192c9333f79abcf 100644 (file)
@@ -28,7 +28,7 @@ order_atq_worker(void *arg, const bool flow_id_cap)
                uint16_t event = rte_event_dequeue_burst(dev_id, port,
                                        &ev, 1, 0);
                if (!event) {
-                       if (rte_atomic64_read(outstand_pkts) <= 0)
+                       if (__atomic_load_n(outstand_pkts, __ATOMIC_RELAXED) <= 0)
                                break;
                        rte_pause();
                        continue;
@@ -64,7 +64,7 @@ order_atq_worker_burst(void *arg, const bool flow_id_cap)
                                BURST_SIZE, 0);
 
                if (nb_rx == 0) {
-                       if (rte_atomic64_read(outstand_pkts) <= 0)
+                       if (__atomic_load_n(outstand_pkts, __ATOMIC_RELAXED) <= 0)
                                break;
                        rte_pause();
                        continue;