No barriers are required when stats are incremented or read.
Fixes:
96fd2bd69b58 ("net/sfc: support flow action count in transfer rules")
Cc: stable@dpdk.org
Signed-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
* 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;
{
#if SFC_SW_STATS_ATOMIC
result->pkts_bytes.int128 = __atomic_load_n(&st->pkts_bytes.int128,
- __ATOMIC_ACQUIRE);
+ __ATOMIC_RELAXED);
#else
*result = *st;
#endif