From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f179.google.com (mail-pd0-f179.google.com [209.85.192.179]) by dpdk.org (Postfix) with ESMTP id 74344C3A8 for ; Sat, 18 Apr 2015 21:33:10 +0200 (CEST) Received: by pdbnk13 with SMTP id nk13so163139283pdb.0 for ; Sat, 18 Apr 2015 12:33:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=XSOQXka52684OunYt7aM+yabbyWpuWc5suRVWwKFq6g=; b=XKpa92qAnQqXk1reBuKwWasTQUWPFIIB66pnq12x2gg/qxT2HMT3j2MpNazhUH014t LJmObe5G4mjM5xposBCtTaO2bOMcVvgyw0UokG/rw8FAQvZqmO0ujsyQK+1L4RFpZxBR i8J2AbO+KWt4teyF+IqL+W7V7Cp2rER1lIMNvnKx0t6QUEytEXw2mY8KUy5w8Y7iLB6b HJcZPPFNBtRIbycgnKWVuMrNSSTaiQVVLfRpIaWgVC6iG3FFxgsTiL5GCBpKBz53J+tR kT4rQyOFKonuIxPC+NwB3PW7fc3n4mrZuO+93p+gr1MfmqyGKqmsWKFNQT55gjve2AD2 iCXw== X-Received: by 10.67.5.230 with SMTP id cp6mr12072697pad.55.1429385589846; Sat, 18 Apr 2015 12:33:09 -0700 (PDT) Received: from user-PC.hsd1.ca.comcast.net (c-98-234-176-9.hsd1.ca.comcast.net. [98.234.176.9]) by mx.google.com with ESMTPSA id ae9sm13711110pac.25.2015.04.18.12.33.08 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 18 Apr 2015 12:33:09 -0700 (PDT) From: Ravi Kerur To: dev@dpdk.org Date: Sat, 18 Apr 2015 12:32:51 -0700 Message-Id: <1429385571-12218-1-git-send-email-rkerur@gmail.com> X-Mailer: git-send-email 1.9.1 Subject: [dpdk-dev] [PATCH v6 0/6] Move common functions in EAL 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: Sat, 18 Apr 2015 19:33:10 -0000 Changes in v6 includes Adding _setname_ pthread functions when threads are created. Plan to use _getname_ when availabe in both Linux and FreeBSD. Splitting eal.c into 4 files based on the functionality. Simplify eal_pci changes for first series. Testing: Linux - Ubuntu x86_64 14.04 Compilation successful (x86_64-native-linuxapp-gcc). "make test" results match baseline code. testpmd utility on I217/I218 Intel chipset. FreeBSD 10.0 x86_64 Compilation successful (x86_64-native-bsdapp-gcc). helloworld. Ravi Kerur (6): Move common functions in eal_thread.c Move common functions in eal.c Move common functions in eal_lcore.c Move common functions in eal_timer.c Move common functions in eal_memory.c Move common functions in eal_pci.c examples/vhost/main.c | 18 +- examples/vhost_xen/main.c | 18 +- lib/librte_eal/bsdapp/eal/Makefile | 8 +- lib/librte_eal/bsdapp/eal/eal.c | 278 +++--------------- lib/librte_eal/bsdapp/eal/eal_lcore.c | 72 +---- lib/librte_eal/bsdapp/eal/eal_memory.c | 47 ++- lib/librte_eal/bsdapp/eal/eal_pci.c | 72 +---- lib/librte_eal/bsdapp/eal/eal_thread.c | 152 ---------- lib/librte_eal/bsdapp/eal/eal_timer.c | 52 +--- lib/librte_eal/common/eal_common_app_usage.c | 63 ++++ lib/librte_eal/common/eal_common_lcore.c | 107 +++++++ lib/librte_eal/common/eal_common_mem_cfg.c | 217 ++++++++++++++ lib/librte_eal/common/eal_common_memory.c | 38 ++- lib/librte_eal/common/eal_common_pci.c | 72 +++++ lib/librte_eal/common/eal_common_proc_type.c | 58 ++++ lib/librte_eal/common/eal_common_sysfs.c | 163 +++++++++++ lib/librte_eal/common/eal_common_thread.c | 147 +++++++++- lib/librte_eal/common/eal_common_timer.c | 102 +++++++ lib/librte_eal/common/eal_hugepages.h | 1 + lib/librte_eal/common/eal_private.h | 171 ++++++++++- lib/librte_eal/common/eal_thread.h | 5 + lib/librte_eal/common/include/rte_eal.h | 4 + lib/librte_eal/common/include/rte_pci_dev_ids.h | 8 +- lib/librte_eal/linuxapp/eal/Makefile | 9 + lib/librte_eal/linuxapp/eal/eal.c | 306 ++++---------------- lib/librte_eal/linuxapp/eal/eal_interrupts.c | 11 + lib/librte_eal/linuxapp/eal/eal_lcore.c | 66 +---- lib/librte_eal/linuxapp/eal/eal_memory.c | 36 +-- lib/librte_eal/linuxapp/eal/eal_pci.c | 75 +---- lib/librte_eal/linuxapp/eal/eal_pci_vfio_mp_sync.c | 22 +- lib/librte_eal/linuxapp/eal/eal_thread.c | 152 +--------- lib/librte_eal/linuxapp/eal/eal_timer.c | 70 ++--- 32 files changed, 1595 insertions(+), 1402 deletions(-) create mode 100644 lib/librte_eal/common/eal_common_app_usage.c create mode 100644 lib/librte_eal/common/eal_common_lcore.c create mode 100644 lib/librte_eal/common/eal_common_mem_cfg.c create mode 100644 lib/librte_eal/common/eal_common_proc_type.c create mode 100644 lib/librte_eal/common/eal_common_sysfs.c create mode 100644 lib/librte_eal/common/eal_common_timer.c -- 1.9.1