From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f174.google.com (mail-pd0-f174.google.com [209.85.192.174]) by dpdk.org (Postfix) with ESMTP id 3B867590C for ; Tue, 6 Jan 2015 18:25:09 +0100 (CET) Received: by mail-pd0-f174.google.com with SMTP id fp1so30804343pdb.33 for ; Tue, 06 Jan 2015 09:25:08 -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=genIpXBD8NKrgW2A3iVs6fhPY+Vc92o/d+CCFsPypK30irs+voxqWxbtPwkwqTWQ38 a0iHeA9Y+gdyz34pQL4mb0sFvTKuNM58ZUBZ2RxB1Y99O8LXvBToNsjna+AMfkNJYIo3 qX+dkepeVg/4+Ld/O0hcpXn04mtQXYRXW3zqMKNAKSAJ7swwpxDuuTelYpwIX3zO8Ck+ Osv/lbjhKq1Zt21CQhz+fIWQxxLnXYOljgWv2C3NferhL42Gp1hUyTgdGnz1fwoVdJ12 F6TSQqsHkyxdSmN8P7m1KqNxj31f7LrfAQ+Dl9x/WNm83u61sHGaf6D0LO9J2r0C4L1j d10Q== X-Received: by 10.68.236.163 with SMTP id uv3mr155411641pbc.5.1420565108361; Tue, 06 Jan 2015 09:25:08 -0800 (PST) Received: from iaas-l305162.englab.brocade.com ([144.49.130.148]) by mx.google.com with ESMTPSA id ip2sm57443010pbb.61.2015.01.06.09.25.07 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 06 Jan 2015 09:25:07 -0800 (PST) From: Ravi Kerur To: dev@dpdk.org Date: Tue, 6 Jan 2015 12:24:55 -0500 Message-Id: <1420565095-17278-1-git-send-email-rkerur@gmail.com> X-Mailer: git-send-email 1.9.1 Cc: rkerur@brocade.com 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:25:09 -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