Re: [dpdk-dev] [PATCH v3 4/4] eventdev: relax smp barriers with C11 atomics

2020-07-07 Thread Phil Yang
kar ; nd ; David > Marchand ; Ray Kinsella ; > Neil Horman ; do...@redhat.com > Subject: Re: [dpdk-dev] [PATCH v3 4/4] eventdev: relax smp barriers with > C11 atomics > > On Tue, Jul 7, 2020 at 4:45 PM Phil Yang wrote: > > > > The impl_opaque field is shared between the

Re: [dpdk-dev] [PATCH v3 4/4] eventdev: relax smp barriers with C11 atomics

2020-07-07 Thread Jerin Jacob
On Tue, Jul 7, 2020 at 4:45 PM Phil Yang wrote: > > The impl_opaque field is shared between the timer arm and cancel > operations. Meanwhile, the state flag acts as a guard variable to > make sure the update of impl_opaque is synchronized. The original > code uses rte_smp barriers to achieve that.