[dpdk-dev] [PATCH V7 3/3] ring: introduce new header file to support C11 memory model

Olivier Matz olivier.matz at 6wind.com
Tue Jan 16 16:18:59 CET 2018


On Sun, Dec 03, 2017 at 05:50:12PM -0800, Jia He wrote:
> To support C11 memory model barrier, 2 options are suggested by Jerin:
> 1. use rte_smp_rmb
> 2. use load_acquire/store_release(refer to [1]).
> CONFIG_RTE_RING_USE_C11_MEM_MODEL is provided, and by default it is "y"
> only on arm64 so far.
> 
> The reason why providing 2 options is due to the performance benchmark
> difference in different arm machines, refer to [2].
> 
> We haven't tested on ppc64. If anyone verifies it, he can add
> CONFIG_RTE_RING_USE_C11_MEM_MODEL=y to ppc64 config files.
> 
> [1] https://github.com/freebsd/freebsd/blob/master/sys/sys/buf_ring.h#L170
> [2] http://dpdk.org/ml/archives/dev/2017-October/080861.html
> 
> Signed-off-by: Jia He <jia.he at hxt-semitech.com>
> Suggested-by: Jerin Jacob <jerin.jacob at caviumnetworks.com>
> Acked-by: Jerin Jacob <jerin.jacob at caviumnetworks.com>

Acked-by: Olivier Matz <olivier.matz at 6wind.com>


More information about the dev mailing list