On Thu, Dec 15, 2016 at 04:13:33PM +0800, Jianbo Liu wrote: > On 14 December 2016 at 09:55, Jerin Jacob > <jerin.ja...@caviumnetworks.com> wrote: > > dmb instruction based barrier is used for smp version of memory barrier. > > > > Signed-off-by: Jerin Jacob <jerin.ja...@caviumnetworks.com> > > --- > > lib/librte_eal/common/include/arch/arm/rte_atomic_64.h | 6 +++--- > > 1 file changed, 3 insertions(+), 3 deletions(-) > > > > diff --git a/lib/librte_eal/common/include/arch/arm/rte_atomic_64.h > > b/lib/librte_eal/common/include/arch/arm/rte_atomic_64.h > > index bc7de64..78ebea2 100644 > > --- a/lib/librte_eal/common/include/arch/arm/rte_atomic_64.h > > +++ b/lib/librte_eal/common/include/arch/arm/rte_atomic_64.h > > @@ -82,11 +82,11 @@ static inline void rte_rmb(void) > > dsb(ld); > > } > > > > -#define rte_smp_mb() rte_mb() > > +#define rte_smp_mb() dmb(ish) > > > > -#define rte_smp_wmb() rte_wmb() > > +#define rte_smp_wmb() dmb(ishst) > > > > -#define rte_smp_rmb() rte_rmb() > > +#define rte_smp_rmb() dmb(ishld) > > > > rte_*mb are inline functions, while rte_smp_*mb are macro. As they are > all derived from dsb/dmb, can you keep them consistent?
OK.I will add a separate patch in v2 series to change existing inline to marco to keep consistent. > > > #ifdef __cplusplus > > } > > -- > > 2.5.5 > >