Re: [dpdk-dev] [PATCH v2 2/4] eventdev: use c11 atomics for lcore timer armed flag

2020-07-02 Thread Carrillo, Erik G
> -Original Message- > From: Phil Yang > Sent: Thursday, July 2, 2020 12:27 AM > To: Carrillo, Erik G ; dev@dpdk.org > Cc: jer...@marvell.com; honnappa.nagaraha...@arm.com; > d...@linux.vnet.ibm.com; ruifeng.w...@arm.com; > dharmik.thak...@arm.com; n...@arm.com > Subject: [PATCH v2 2/4] ev

[dpdk-dev] [PATCH v2 2/4] eventdev: use c11 atomics for lcore timer armed flag

2020-07-01 Thread Phil Yang
The in_use flag is a per core variable which is not shared between lcores in the normal case and the access of this variable should be ordered on the same core. However, if non-EAL thread pick the highest lcore to insert timers into, there is the possibility of conflicts on this flag between thread