Re: [dpdk-dev] [PATCH v3 6/6] service: relax barriers with C11 atomics

2020-05-05 Thread Van Haaren, Harry
> -Original Message- > From: Honnappa Nagarahalli > Sent: Saturday, May 2, 2020 1:03 AM > To: dev@dpdk.org; phil.y...@arm.com; Van Haaren, Harry > > Cc: tho...@monjalon.net; david.march...@redhat.com; Ananyev, Konstantin > ; jer...@marvell.com; > hemant.agra...@nxp.com; Eads, Gage ; Richa

[dpdk-dev] [PATCH v3 6/6] service: relax barriers with C11 atomics

2020-05-01 Thread Honnappa Nagarahalli
From: Phil Yang The runstate, comp_runstate and app_runstate are used as guard variables in the service core lib. To guarantee the inter-threads visibility of these guard variables, it uses rte_smp_r/wmb. This patch use c11 atomic built-ins to relax these barriers. Signed-off-by: Phil Yang Revi