rcu: use EAL memory barrier API
authorJoyce Kong <joyce.kong@arm.com>
Mon, 21 Dec 2020 07:38:48 +0000 (15:38 +0800)
committerDavid Marchand <david.marchand@redhat.com>
Mon, 11 Jan 2021 14:34:21 +0000 (15:34 +0100)
commit4aae2397add77afefb7d91181e3ea0b1e7287949
tree6f9c7f0edbf996141b75e19bb98ab838d4fff0eb
parent397fb6a8d96cf06fc83bd87cadf46d2226fc42ed
rcu: use EAL memory barrier API

Use rte_atomic_thread_fence wrapper which has been provided for
__atomic_thread_fence builtins to support optimized code for
__ATOMIC_SEQ_CST memory order on x86 platforms.

Signed-off-by: Joyce Kong <joyce.kong@arm.com>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
lib/librte_rcu/rte_rcu_qsbr.h