Re: [dpdk-dev] [PATCH v4] lib/timer: relax barrier for status update

2020-04-26 Thread Thomas Monjalon
26/04/2020 16:45, Phil Yang: > Volatile has no ordering semantics. The rte_timer structure defines > timer status as a volatile variable and uses the rte_r/wmb barrier > to guarantee inter-thread visibility. > > This patch optimized the volatile operation with c11 atomic operations > and one-way b

[dpdk-dev] [PATCH v4] lib/timer: relax barrier for status update

2020-04-26 Thread Phil Yang
Volatile has no ordering semantics. The rte_timer structure defines timer status as a volatile variable and uses the rte_r/wmb barrier to guarantee inter-thread visibility. This patch optimized the volatile operation with c11 atomic operations and one-way barrier to save the performance penalty. A