stack: remove acquire fence on push
authorSteven Lariau <steven.lariau@arm.com>
Fri, 25 Sep 2020 17:43:36 +0000 (18:43 +0100)
committerDavid Marchand <david.marchand@redhat.com>
Wed, 30 Sep 2020 19:08:39 +0000 (21:08 +0200)
commit9e90bc9c712c4afc96ad9d08a1c9fbc87f481513
tree7931dbb16b60a55d25131f349fc4d8d438ca13bc
parent0df8e2d2c9ac4d38c6d4c27c0e865c1695e5348d
stack: remove acquire fence on push

An acquire fence is used to make sure loads after the fence can observe
all store operations before a specific store-release.
But push doesn't read any data, except for the head which is part of a
CAS operation (the items on the list are not read).
So there is no need for the acquire barrier.

Signed-off-by: Steven Lariau <steven.lariau@arm.com>
Reviewed-by: Dharmik Thakkar <dharmik.thakkar@arm.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
Acked-by: Gage Eads <gage.eads@intel.com>
lib/librte_stack/rte_stack_lf_c11.h