15/01/2018 16:04, Konstantin Ananyev:
> Simple functional test for rte_smp_mb() implementations.
> Also when executed on a single lcore could be used as rough
> estimation how many cycles particular implementation of rte_smp_mb()
> might take.
>
> Signed-off-by: Konstantin Ananyev <[email protected]>
> ---
> test/test/Makefile | 1 +
> test/test/test_barrier.c | 286
> +++++++++++++++++++++++++++++++++++++++++++++++
I will add
F: test/test/test_barrier.c
in MAINTAINERS, when applying.
> +static inline void
> +store_load_barrier(uint32_t utype)
> +{
> + if (utype == USE_MB)
> + rte_mb();
> + else if (utype == USE_SMP_MB)
> + rte_smp_mb();
> + else
> + RTE_VERIFY(0);
> +}
It does not compile on ARM64.
I have sent a fix for ARM64 barrier macros:
https://dpdk.org/patch/33762