From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <rkerur@gmail.com>
Received: from mail-pa0-f49.google.com (mail-pa0-f49.google.com
 [209.85.220.49]) by dpdk.org (Postfix) with ESMTP id 79F055A52
 for <dev@dpdk.org>; Thu,  9 Apr 2015 21:40:31 +0200 (CEST)
Received: by pacyx8 with SMTP id yx8so159044957pac.1
 for <dev@dpdk.org>; Thu, 09 Apr 2015 12:40:30 -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:in-reply-to:references;
 bh=bz5ANVy/VkNqtv9xAjxSlO+g/16SFYg9Ou9DVfDss50=;
 b=ldtgQedw9Cf4swgW3/SQueVvBG8vDTP2aC07H7HlhBijoco92TEyiR75rAYqJ4nysz
 68cwR5PN6eQZZQhileFUYlE6X7q0ZYF686Bm5nIL3Lzk2RGB6IOnWWVQvTmhcP6BFsBV
 j1uNtV5wtgWINa2QDfZHhPryMrDgszvX40xL/OyOiriA/0/ZQ0MZwzsF/D0GopR6ECA0
 FrRQqXq6LKsKEdRSX7c7aCEHaRtJEHELAGUWSGVaMBbts5kfCAMUq8vlqZ+bsRYGj2re
 x2GtsuHbm58GgdZvAtYMR+dolLC+akZvnKS/VLHi2UrFDA2AXtmrchEH5YmH4uSQWNX9
 E4BQ==
X-Received: by 10.68.139.37 with SMTP id qv5mr59181812pbb.23.1428608430006;
 Thu, 09 Apr 2015 12:40:30 -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 xv9sm15149298pbc.2.2015.04.09.12.40.29
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);
 Thu, 09 Apr 2015 12:40:29 -0700 (PDT)
From: Ravi Kerur <rkerur@gmail.com>
To: dev@dpdk.org
Date: Thu,  9 Apr 2015 12:40:06 -0700
Message-Id: <1428608412-31191-1-git-send-email-rkerur@gmail.com>
X-Mailer: git-send-email 1.9.1
In-Reply-To: <1428608301-31033-1-git-send-email-rkerur@gmail.com>
References: <1428608301-31033-1-git-send-email-rkerur@gmail.com>
Subject: [dpdk-dev] [PATCH v5 0/8] 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 <dev.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Thu, 09 Apr 2015 19:40:31 -0000

Changes include moving common functions in BSD and Linux into
common directory.
Use appropriate wrapper functions to mask minor differences.

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

 lib/librte_eal/bsdapp/eal/Makefile              |   6 +-
 lib/librte_eal/bsdapp/eal/eal.c                 | 271 +++-------------------
 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             | 122 ++--------
 lib/librte_eal/bsdapp/eal/eal_thread.c          | 152 ------------
 lib/librte_eal/bsdapp/eal/eal_timer.c           |  52 +----
 lib/librte_eal/common/eal_common_lcore.c        | 107 +++++++++
 lib/librte_eal/common/eal_common_memory.c       |  38 ++-
 lib/librte_eal/common/eal_common_pci.c          | 130 ++++++++++-
 lib/librte_eal/common/eal_common_runtime.c      | 201 ++++++++++++++++
 lib/librte_eal/common/eal_common_system.c       | 203 ++++++++++++++++
 lib/librte_eal/common/eal_common_thread.c       | 158 +++++++++++++
 lib/librte_eal/common/eal_common_timer.c        | 101 ++++++++
 lib/librte_eal/common/eal_hugepages.h           |   1 +
 lib/librte_eal/common/eal_private.h             | 186 +++++++++++++++
 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            |   5 +
 lib/librte_eal/linuxapp/eal/eal.c               | 295 ++++--------------------
 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           | 100 +-------
 lib/librte_eal/linuxapp/eal/eal_pci_init.h      |   6 -
 lib/librte_eal/linuxapp/eal/eal_pci_uio.c       |  36 +--
 lib/librte_eal/linuxapp/eal/eal_pci_vfio.c      |  17 +-
 lib/librte_eal/linuxapp/eal/eal_thread.c        | 152 ------------
 lib/librte_eal/linuxapp/eal/eal_timer.c         |  55 +----
 28 files changed, 1355 insertions(+), 1332 deletions(-)
 create mode 100644 lib/librte_eal/common/eal_common_lcore.c
 create mode 100644 lib/librte_eal/common/eal_common_runtime.c
 create mode 100644 lib/librte_eal/common/eal_common_system.c
 create mode 100644 lib/librte_eal/common/eal_common_timer.c

-- 
1.9.1