From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) by dpdk.org (Postfix) with ESMTP id 6C74E5946 for ; Sat, 6 Feb 2016 23:18:36 +0100 (CET) Received: by mail-wm0-f53.google.com with SMTP id 128so112320118wmz.1 for ; Sat, 06 Feb 2016 14:18:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=lwrzBqXU2i4WaMiOzdrN1rotm3fmVXu554COpMc6+MA=; b=tkmbpWMLCuq4Ftcla9avdMjt2GZrMHI4eQZNGKEZ188o1zhFwk7Miqdb0LK6X1Qy5M jtY+HSEZw0Wnuv7E+rWCV31qLAQk9S4yGXicJyt9AbtRQ0Q2VHBnW7MtplTo/PX4jMEL UXlO7pHucofbr262ReAj/T/3SijEMcnhXMDe0nOWpbUKDkuo7+qDoBlrW3HCU/jZZrfB eEOX2LoxJz9zWddiCUnWtiboFtHos5BZcDxHVFbdmmZDzKV66kjEk1X3NQjIrncaZFrn QDXF8L+aFutT1NhgpARaxBaTfP3ZsiiY+kPEGgobS4soz1aNkUTDhfhi5x+qpQcD+vbv Ygyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=lwrzBqXU2i4WaMiOzdrN1rotm3fmVXu554COpMc6+MA=; b=OTFWCjGmz64My8Wv0US9/dkM8cL0AVW/8x+tQ8QokDHOSoaTq9Q+F/DccZNRMGmios 8gAafOrHyWQmBIE2MqIHPnzshc4/9zU5gjQCxC1gWWNfb2YpA1TfQi6v/yv8085bd9+x 7EuhYVKnD1pN11R+rs1e9Zg9nQX8RrFUN/Ny2WMG2jk7DszBX10c6goLwP3zuxG/Qhcn gnl/evPr9PqIgzGJoe05CG2mCCx3T09nJ25p1gV4JiecXC157+MSZaFUljLrvolJOwaG KclGHO0pxJ5MkzjQjtPIBN9W1VLRO0CRANpUk0D5XtJhS9SC7MQtkEkzXn5l4ZWXONU1 Bbbw== X-Gm-Message-State: AG10YORVA6Q/vuhbUVNDPeHgRc0MLGpN3NzqCYujxDSWv0RgZF/xIVz8KmTV83MVJ3eKIQOR X-Received: by 10.28.224.212 with SMTP id x203mr23369760wmg.29.1454797115881; Sat, 06 Feb 2016 14:18:35 -0800 (PST) Received: from localhost.localdomain (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by smtp.gmail.com with ESMTPSA id e9sm22167710wja.25.2016.02.06.14.18.34 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 06 Feb 2016 14:18:35 -0800 (PST) From: Thomas Monjalon To: david.marchand@6wind.com, ferruh.yigit@intel.com Date: Sat, 6 Feb 2016 23:17:08 +0100 Message-Id: <1454797033-24057-1-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1454453993-3903-1-git-send-email-thomas.monjalon@6wind.com> References: <1454453993-3903-1-git-send-email-thomas.monjalon@6wind.com> Cc: dev@dpdk.org, viktorin@rehivetech.com Subject: [dpdk-dev] [PATCH v2 0/5] clean-up cpuflags 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, 06 Feb 2016 22:18:36 -0000 Following the work of Ferruh, I suggest this cleanup to remove as much as possible of the code from the cpuflags headers. The goal is to un-inline these functions (not performance sensitive) and remove the CPU flags table from the ABI (just added recently). The bonus is to stop mimic x86 in ARM and PPC implementations. WARNING: it has not been tested nor compiled on Tilera and POWER8. v2 changes: - fix maintainers file - fix include from C++ app - fix missing REG_PLATFORM for ARM - suggested ARM refactor from Jerin Thomas Monjalon (5): eal: get CPU flag name eal: move CPU flag functions out of headers eal/arm: adapt CPU flags check to the arch eal/ppc: adapt CPU flags check to the arch eal: remove compiler optimization workaround MAINTAINERS | 4 + app/test/test_hash_scaling.c | 2 + lib/librte_eal/bsdapp/eal/rte_eal_version.map | 2 +- lib/librte_eal/common/arch/arm/rte_cpuflags.c | 179 ++++++++++++++++----- lib/librte_eal/common/arch/ppc_64/rte_cpuflags.c | 145 +++++++++++++---- lib/librte_eal/common/arch/tile/rte_cpuflags.c | 11 ++ lib/librte_eal/common/arch/x86/rte_cpuflags.c | 91 +++++++++++ lib/librte_eal/common/eal_common_cpuflags.c | 18 +-- .../common/include/arch/arm/rte_cpuflags_32.h | 80 +-------- .../common/include/arch/arm/rte_cpuflags_64.h | 81 +--------- .../common/include/arch/ppc_64/rte_cpuflags.h | 66 +------- .../common/include/arch/tile/rte_cpuflags.h | 31 +--- .../common/include/arch/x86/rte_cpuflags.h | 68 +------- .../common/include/generic/rte_cpuflags.h | 56 ++----- lib/librte_eal/linuxapp/eal/rte_eal_version.map | 2 +- 15 files changed, 378 insertions(+), 458 deletions(-) -- 2.7.0