From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) by dpdk.org (Postfix) with ESMTP id 9BA088D90 for ; Wed, 3 Feb 2016 00:01:16 +0100 (CET) Received: by mail-wm0-f50.google.com with SMTP id l66so45283058wml.0 for ; Tue, 02 Feb 2016 15:01:16 -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; bh=rH5SRYWJj8M3gBapS6g8YsQCJ9X2xl4OJfcTPJlmJ6A=; b=sD7NBapvmAHLrKmkSJvkRXPCN6wlEy/r6+ecGKVgNnQ8aGk1dDZbhIe1xpptQOMxyr KslHl8iuopc5u8mqRBgxJJA81xGz5AuFhft4O1sZBdY+lFN3k08HnNNvEFJPfpUrb9AL Q/eXdBZ8+TS2EVJVkIlLSXJVdMKUPgPd+3Rc+rozY93HQGcX7UEHxRV1CM9jM1Lvmovx 9CJ5Fke6Toj4ttovFvcMHqhyYE5LdV8dLMHT1wCEfs5RRpu4/6SAxWWln4ZnRegiqTgh nWaog8N/VOsU0+0ZFVErSw1h4KmfT7qCUoFedtB7fJOVYW56tOJgqMEtWpRgehigacCS DBuQ== 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; bh=rH5SRYWJj8M3gBapS6g8YsQCJ9X2xl4OJfcTPJlmJ6A=; b=JWz7uCB8yfEAplWoio/94xDliDDLmDQLZ/vsiblRN2dn9yml/q8SztjzFBqKszavwD 4pU0lNFsEht+AcCN4O2ovCps11PfCUipsV+7GABvXkvR8xSbu9M7A6NHNx3sSa9TNN7x j9UIXyWPJ/qm4XCJ9L4WynpA/VAjnzxyQmMbQQCclQsnjxwE4EV4k5qYwR3pVIGWsE3Z /QR4GoOc9/XAA07LC85gQfavhLRudvu1fucRr6nDkXWDdVvkovlmYicAtuo23EwpVaYr vqUaz1FySuUf4Xhqo6MAslWIjI0j4UWtkujQu7jI0eb+30d/kuJy7+PElM+byCib6iA1 UdLQ== X-Gm-Message-State: AG10YOTixCOjM776RnQbkuBAKCyEjCGD8qCGYXXdg9UcLXh6E7UXePTOxDvcORwPPdMpjam9 X-Received: by 10.194.203.168 with SMTP id kr8mr31333939wjc.168.1454454076350; Tue, 02 Feb 2016 15:01:16 -0800 (PST) Received: from localhost.localdomain (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by smtp.gmail.com with ESMTPSA id e9sm3555612wja.25.2016.02.02.15.01.14 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 02 Feb 2016 15:01:15 -0800 (PST) From: Thomas Monjalon To: david.marchand@6wind.com, ferruh.yigit@intel.com Date: Tue, 2 Feb 2016 23:59:48 +0100 Message-Id: <1454453993-3903-1-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.5.2 Cc: dev@dpdk.org, viktorin@rehivetech.com Subject: [dpdk-dev] [PATCH v1 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: Tue, 02 Feb 2016 23:01:16 -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, ARM and POWER8. Please help, thank you. 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 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 | 170 ++++++++++++++++----- 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 | 78 ---------- .../common/include/arch/arm/rte_cpuflags_64.h | 79 ---------- .../common/include/arch/ppc_64/rte_cpuflags.h | 64 -------- .../common/include/arch/tile/rte_cpuflags.h | 29 ---- .../common/include/arch/x86/rte_cpuflags.h | 66 -------- .../common/include/generic/rte_cpuflags.h | 56 ++----- lib/librte_eal/linuxapp/eal/rte_eal_version.map | 3 +- 14 files changed, 364 insertions(+), 450 deletions(-) -- 2.5.2