From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from e8.ny.us.ibm.com (e8.ny.us.ibm.com [32.97.182.138]) by dpdk.org (Postfix) with ESMTP id 0DDEA7E76 for ; Thu, 16 Oct 2014 12:36:42 +0200 (CEST) Received: from /spool/local by e8.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 16 Oct 2014 06:44:35 -0400 Received: from d01dlp02.pok.ibm.com (9.56.250.167) by e8.ny.us.ibm.com (192.168.1.108) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 16 Oct 2014 06:44:33 -0400 Received: from b01cxnp23033.gho.pok.ibm.com (b01cxnp23033.gho.pok.ibm.com [9.57.198.28]) by d01dlp02.pok.ibm.com (Postfix) with ESMTP id 274A56E8040 for ; Thu, 16 Oct 2014 06:33:17 -0400 (EDT) Received: from d01av05.pok.ibm.com (d01av05.pok.ibm.com [9.56.224.195]) by b01cxnp23033.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id s9GAiO2Z3866880 for ; Thu, 16 Oct 2014 10:44:33 GMT Received: from d01av05.pok.ibm.com (localhost [127.0.0.1]) by d01av05.pok.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s9GAhxA2019635 for ; Thu, 16 Oct 2014 06:43:59 -0400 Received: from d01hub02.pok.ibm.com (d01hub02.pok.ibm.com [9.63.10.236]) by d01av05.pok.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id s9GAhxlZ019293 for ; Thu, 16 Oct 2014 06:43:59 -0400 Received: from localhost.localdomain ([9.186.57.14]) by rescrl1.research.ibm.com (IBM Domino Release 9.0.1) with ESMTP id 2014101618430872-431781 ; Thu, 16 Oct 2014 18:43:08 +0800 From: Chao Zhu To: dev@dpdk.org Date: Thu, 16 Oct 2014 06:44:27 -0400 Message-Id: <1413456274-22649-1-git-send-email-bjzhuc@cn.ibm.com> X-Mailer: git-send-email 1.7.1 X-MIMETrack: Itemize by SMTP Server on rescrl1/Research/Affiliated/IBM(Release 9.0.1|October 14, 2013) at 2014/10/16 18:43:08, Serialize by Router on D01HUB02/01/H/IBM(Release 8.5.3FP2 ZX853FP2HF5|February, 2013) at 10/16/2014 06:43:58, Serialize complete at 10/16/2014 06:43:58 X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14101610-0029-0000-0000-000000C573D4 Subject: [dpdk-dev] [PATCH v2 0/7] Patches to split architecture specific operations from DPDK X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Oct 2014 10:36:43 -0000 The set of patches split x86 architecture specific operations from DPDK and put them to the arch directories of i686 and x86_64 architecture. This will make the adpotion of DPDK much easier on other computer architecture. For a new architecture, just add an architecture specific directory and necessary building configuration files, then DPDK eal library can support it. This is an upgrade version of the former patch. Chao Zhu (7): Split atomic operations to architecture specific Split byte order operations to architecture specific Split CPU cycle operation to architecture specific Split prefetch operations to architecture specific Split spinlock operations to architecture specific Split memcpy operation to architecture specific Split CPU flags operations to architecture specific lib/librte_eal/common/Makefile | 21 +- lib/librte_eal/common/eal_common_cpuflags.c | 190 ---- .../common/include/arch/i686/rte_atomic.h | 669 ++++++++++++ .../common/include/arch/i686/rte_byteorder.h | 194 ++++ .../common/include/arch/i686/rte_cpuflags.h | 364 +++++++ .../common/include/arch/i686/rte_cycles.h | 158 +++ .../common/include/arch/i686/rte_memcpy.h | 376 +++++++ .../common/include/arch/i686/rte_prefetch.h | 88 ++ .../common/include/arch/i686/rte_spinlock.h | 180 ++++ .../common/include/arch/x86_64/rte_atomic.h | 631 +++++++++++ .../common/include/arch/x86_64/rte_byteorder.h | 195 ++++ .../common/include/arch/x86_64/rte_cpuflags.h | 364 +++++++ .../common/include/arch/x86_64/rte_cycles.h | 158 +++ .../common/include/arch/x86_64/rte_memcpy.h | 376 +++++++ .../common/include/arch/x86_64/rte_prefetch.h | 88 ++ .../common/include/arch/x86_64/rte_spinlock.h | 180 ++++ lib/librte_eal/common/include/generic/rte_atomic.h | 795 ++++++++++++++ .../common/include/generic/rte_byteorder.h | 124 +++ lib/librte_eal/common/include/generic/rte_cycles.h | 190 ++++ .../common/include/generic/rte_spinlock.h | 169 +++ .../common/include/i686/arch/rte_atomic.h | 373 ------- lib/librte_eal/common/include/rte_atomic.h | 1133 -------------------- lib/librte_eal/common/include/rte_byteorder.h | 270 ----- lib/librte_eal/common/include/rte_cpuflags.h | 182 ---- lib/librte_eal/common/include/rte_cycles.h | 266 ----- lib/librte_eal/common/include/rte_memcpy.h | 376 ------- lib/librte_eal/common/include/rte_prefetch.h | 88 -- lib/librte_eal/common/include/rte_spinlock.h | 258 ----- .../common/include/x86_64/arch/rte_atomic.h | 335 ------ 29 files changed, 5311 insertions(+), 3480 deletions(-) create mode 100644 lib/librte_eal/common/include/arch/i686/rte_atomic.h create mode 100644 lib/librte_eal/common/include/arch/i686/rte_byteorder.h create mode 100644 lib/librte_eal/common/include/arch/i686/rte_cpuflags.h create mode 100644 lib/librte_eal/common/include/arch/i686/rte_cycles.h create mode 100644 lib/librte_eal/common/include/arch/i686/rte_memcpy.h create mode 100644 lib/librte_eal/common/include/arch/i686/rte_prefetch.h create mode 100644 lib/librte_eal/common/include/arch/i686/rte_spinlock.h create mode 100644 lib/librte_eal/common/include/arch/x86_64/rte_atomic.h create mode 100644 lib/librte_eal/common/include/arch/x86_64/rte_byteorder.h create mode 100644 lib/librte_eal/common/include/arch/x86_64/rte_cpuflags.h create mode 100644 lib/librte_eal/common/include/arch/x86_64/rte_cycles.h create mode 100644 lib/librte_eal/common/include/arch/x86_64/rte_memcpy.h create mode 100644 lib/librte_eal/common/include/arch/x86_64/rte_prefetch.h create mode 100644 lib/librte_eal/common/include/arch/x86_64/rte_spinlock.h create mode 100644 lib/librte_eal/common/include/generic/rte_atomic.h create mode 100644 lib/librte_eal/common/include/generic/rte_byteorder.h create mode 100644 lib/librte_eal/common/include/generic/rte_cycles.h create mode 100644 lib/librte_eal/common/include/generic/rte_spinlock.h delete mode 100644 lib/librte_eal/common/include/i686/arch/rte_atomic.h delete mode 100644 lib/librte_eal/common/include/rte_atomic.h delete mode 100644 lib/librte_eal/common/include/rte_byteorder.h delete mode 100644 lib/librte_eal/common/include/rte_cpuflags.h delete mode 100644 lib/librte_eal/common/include/rte_cycles.h delete mode 100644 lib/librte_eal/common/include/rte_memcpy.h delete mode 100644 lib/librte_eal/common/include/rte_prefetch.h delete mode 100644 lib/librte_eal/common/include/rte_spinlock.h delete mode 100644 lib/librte_eal/common/include/x86_64/arch/rte_atomic.h