From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f177.google.com (mail-pd0-f177.google.com [209.85.192.177]) by dpdk.org (Postfix) with ESMTP id 90B66590C for ; Tue, 6 Jan 2015 18:26:26 +0100 (CET) Received: by mail-pd0-f177.google.com with SMTP id ft15so30369699pdb.8 for ; Tue, 06 Jan 2015 09:26:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=pn78dMzfZga/OUQNWn7ZQCKRuZEtRyXgJ6/gtr4NK2U=; b=V4U+l1Xk/7oUwuJCCKh+LWaH4eOfPBCF3M1ej5O10zmb6Icj2nzbBjpJp0ybzjO+V5 WAhF2g6OBdl82C7WykfQuy9dxSlPfK1EWM+PDXNugd9M1HloQNxou/Vi3UKkrFzSGs0r M3gfRfsAMIylQUMxMg7r6a223OGusNjiLM3i0kwxXZ71xRa3JkpJa3bw8PQ/XP+oR32V d8eXVnvjNs7xXGocEYKAhmHld/nD+jAZ8z56XehgitjmV7VwAH36acYuXFn0MhwoeWHn n1udh5xy4Aadmo2GermVrp0C2UDbz0IbIBvSxL6uETgY5D/SXi8rfe1mFwJyrKerJmG/ HpRw== X-Received: by 10.68.231.102 with SMTP id tf6mr73725144pbc.40.1420565185710; Tue, 06 Jan 2015 09:26:25 -0800 (PST) Received: from iaas-l305162.englab.brocade.com ([144.49.130.148]) by mx.google.com with ESMTPSA id k4sm57425022pbq.74.2015.01.06.09.26.24 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 06 Jan 2015 09:26:25 -0800 (PST) From: Ravi Kerur To: dev@dpdk.org Date: Tue, 6 Jan 2015 12:26:10 -0500 Message-Id: <1420565170-17365-1-git-send-email-rkerur@gmail.com> X-Mailer: git-send-email 1.9.1 Subject: [dpdk-dev] [PATCH v4 0/7] Move EAL common function 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: Tue, 06 Jan 2015 17:26:26 -0000 Fix v3 PATCH review comments from Thomas. eal_common.c is further split into eal_common_system.c and eal_common_runtime.c files with appropriate functions. eal_externs.h file is removed and _get_ and _set_ APIs are used to access variables. Functions with same signature in Linux and BSD but different names are kept intact but Linux function name is used as wrapper for BSD. Added eal_pci.c in v4 PATCH. New files added follow _common_ naming conventions. Tested against Ubuntu and FreeBSD. Ravi Kerur (7): Move common functions in eal_debug.c 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 app/test/test_debug.c | 1 - lib/librte_eal/bsdapp/eal/Makefile | 12 +- lib/librte_eal/bsdapp/eal/eal.c | 269 ++++---------------------- lib/librte_eal/bsdapp/eal/eal_debug.c | 113 ----------- lib/librte_eal/bsdapp/eal/eal_lcore.c | 61 ++---- lib/librte_eal/bsdapp/eal/eal_memory.c | 47 ++--- lib/librte_eal/bsdapp/eal/eal_pci.c | 127 +------------ lib/librte_eal/bsdapp/eal/eal_thread.c | 233 ----------------------- lib/librte_eal/bsdapp/eal/eal_timer.c | 54 +----- lib/librte_eal/common/eal_common_debug.c | 106 +++++++++++ lib/librte_eal/common/eal_common_lcore.c | 95 ++++++++++ lib/librte_eal/common/eal_common_memory.c | 38 +++- lib/librte_eal/common/eal_common_pci.c | 171 ++++++++++++++++- 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 | 248 ++++++++++++++++++++++++ lib/librte_eal/common/eal_common_timer.c | 101 ++++++++++ lib/librte_eal/common/eal_hugepages.h | 1 + lib/librte_eal/common/eal_private.h | 205 ++++++++++++++++++++ lib/librte_eal/common/include/rte_debug.h | 7 - lib/librte_eal/linuxapp/eal/Makefile | 12 +- lib/librte_eal/linuxapp/eal/eal.c | 290 +++++------------------------ lib/librte_eal/linuxapp/eal/eal_debug.c | 113 ----------- lib/librte_eal/linuxapp/eal/eal_lcore.c | 55 +----- lib/librte_eal/linuxapp/eal/eal_memory.c | 36 +--- lib/librte_eal/linuxapp/eal/eal_pci.c | 113 +---------- 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 | 9 +- lib/librte_eal/linuxapp/eal/eal_thread.c | 233 ----------------------- lib/librte_eal/linuxapp/eal/eal_timer.c | 55 +----- 31 files changed, 1522 insertions(+), 1729 deletions(-) delete mode 100644 lib/librte_eal/bsdapp/eal/eal_debug.c delete mode 100644 lib/librte_eal/bsdapp/eal/eal_thread.c create mode 100644 lib/librte_eal/common/eal_common_debug.c 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_thread.c create mode 100644 lib/librte_eal/common/eal_common_timer.c delete mode 100644 lib/librte_eal/linuxapp/eal/eal_debug.c delete mode 100644 lib/librte_eal/linuxapp/eal/eal_thread.c -- 1.9.1