[PATCH v5 2/9] ethdev: add common counters for statistics
Wathsala Wathawana Vithanage
wathsala.vithanage at arm.com
Thu May 16 20:30:52 CEST 2024
> + packets = rte_counter64_fetch(&counters->packets);
> + bytes = rte_counter64_fetch(&counters->bytes);
> + errors = rte_counter64_fetch(&counters->errors);
> +
> + rte_compiler_barrier();
> +
> + stats->ipackets += packets;
> + stats->ibytes += bytes;
> + stats->ierrors += errors;
> +
there seems to be a dependency chain in the above loads and subsequent stores.
If that's the case what's the purpose of the compiler barrier?
--wathsala
More information about the dev
mailing list