]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/sfc/sfc_stats.h
net/sfc: handle ingress mport in EF100 Rx prefix
[dpdk.git] / drivers / net / sfc / sfc_stats.h
index 2d7ab71f14c885c5631e2118d82e67c226be10e2..aae8243c735b339ed8311316083d4c4fb1350d74 100644 (file)
@@ -53,7 +53,7 @@ sfc_pkts_bytes_add(union sfc_pkts_bytes *st, uint64_t pkts, uint64_t bytes)
         * core sees both counter updates together.
         */
        __atomic_store_n(&st->pkts_bytes.int128, result.pkts_bytes.int128,
-                        __ATOMIC_RELEASE);
+                        __ATOMIC_RELAXED);
 #else
        st->pkts += pkts;
        st->bytes += bytes;
@@ -68,7 +68,7 @@ sfc_pkts_bytes_get(const union sfc_pkts_bytes *st, union sfc_pkts_bytes *result)
 {
 #if SFC_SW_STATS_ATOMIC
        result->pkts_bytes.int128 = __atomic_load_n(&st->pkts_bytes.int128,
-                                                   __ATOMIC_ACQUIRE);
+                                                   __ATOMIC_RELAXED);
 #else
        *result = *st;
 #endif