From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruce Richardson Subject: Re: [PATCH 1/7] Split atomic operations to architecture specific Date: Mon, 29 Sep 2014 12:05:22 +0100 Message-ID: <20140929110522.GF12072@BRICHA3-MOBL> References: <1411724018-7738-1-git-send-email-bjzhuc@cn.ibm.com> <1411724018-7738-2-git-send-email-bjzhuc@cn.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev-VfR2kkLFssw@public.gmane.org To: Chao Zhu Return-path: Content-Disposition: inline In-Reply-To: <1411724018-7738-2-git-send-email-bjzhuc-vtt25B2cwJLQT0dZR+AlfA@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" On Fri, Sep 26, 2014 at 05:33:32AM -0400, Chao Zhu wrote: > This patch splits the atomic operations from DPDK and push them to > architecture specific arch directories, so that other processor > architecture to support DPDK can be easily adopted. > > Signed-off-by: Chao Zhu > --- > lib/librte_eal/common/Makefile | 2 +- > .../common/include/i686/arch/rte_atomic_arch.h | 378 ++++++++++++++++++++ > lib/librte_eal/common/include/rte_atomic.h | 172 +-------- > .../common/include/x86_64/arch/rte_atomic_arch.h | 378 ++++++++++++++++++++ > 4 files changed, 772 insertions(+), 158 deletions(-) > create mode 100644 lib/librte_eal/common/include/i686/arch/rte_atomic_arch.h > create mode 100644 lib/librte_eal/common/include/x86_64/arch/rte_atomic_arch.h > <...snip...> > +#define rte_compiler_barrier() rte_arch_compiler_barrier() Small question: shouldn't the compiler barrier be independent of architecture? /Bruce