eal/linux: use C11 atomics for interrupt status
authorPhil Yang <phil.yang@arm.com>
Thu, 9 Jul 2020 08:34:35 +0000 (16:34 +0800)
committerDavid Marchand <david.marchand@redhat.com>
Thu, 9 Jul 2020 16:53:40 +0000 (18:53 +0200)
commite0a439466b9d63e3a5cc063efbf08784300b54c4
treeb4224c41b630c9b9f345fbcb4b99c706bc413ef9
parent2d6ed071a8b93ead509ff26914bdb8938efd7543
eal/linux: use C11 atomics for interrupt status

The event status is defined as a volatile variable and shared between
threads. Use C11 atomic built-ins with explicit ordering instead of
rte_atomic ops which enforce unnecessary barriers on aarch64.

The event status has been cleaned up by the compare-and-swap operation
when we free the event data, so there is no need to set it to invalid
after that.

Signed-off-by: Phil Yang <phil.yang@arm.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Reviewed-by: Harman Kalra <hkalra@marvell.com>
devtools/libabigail.abignore
lib/librte_eal/include/rte_eal_interrupts.h
lib/librte_eal/linux/eal_interrupts.c