[dpdk-dev] [PATCH v3] eal: use c11 atomic built-ins for interrupt status
David Marchand
david.marchand at redhat.com
Fri Jul 10 08:32:25 CEST 2020
On Thu, Jul 9, 2020 at 10:35 AM Phil Yang <phil.yang at arm.com> wrote:
>
> 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 at arm.com>
> Reviewed-by: Ruifeng Wang <ruifeng.wang at arm.com>
> Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli at arm.com>
> Reviewed-by: Harman Kalra <hkalra at marvell.com>
Applied, thanks.
--
David Marchand
More information about the dev
mailing list