Re: [dpdk-dev] [PATCH v10 0/3] generic rte atomic APIs deprecate proposal

2020-07-20 Thread Phil Yang
> -Original Message- > From: David Marchand > Sent: Friday, July 17, 2020 9:59 PM > To: Phil Yang > Cc: tho...@monjalon.net; dev ; Mcnamara, John > ; Honnappa Nagarahalli > ; David Christensen > ; jer...@marvell.com; Ananyev, Konstantin > ; Ola Liljedahl ; > Bruce Richardson ; Ruifeng Wan

Re: [dpdk-dev] [PATCH v10 0/3] generic rte atomic APIs deprecate proposal

2020-07-17 Thread David Marchand
On Fri, Jul 17, 2020 at 12:15 PM Phil Yang wrote: > > DPDK provides generic rte_atomic APIs to do several atomic operations. > These APIs are using the deprecated __sync builtins and enforce full > memory barriers on aarch64. However, full barriers are not necessary > in many use cases. In order t

[dpdk-dev] [PATCH v10 0/3] generic rte atomic APIs deprecate proposal

2020-07-17 Thread Phil Yang
DPDK provides generic rte_atomic APIs to do several atomic operations. These APIs are using the deprecated __sync builtins and enforce full memory barriers on aarch64. However, full barriers are not necessary in many use cases. In order to address such use cases, C language offers C11 atomic APIs.