From patchwork Sun Dec 3 01:00:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 120431 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp2864506qgn; Sat, 2 Dec 2017 17:01:35 -0800 (PST) X-Google-Smtp-Source: AGs4zMb2Rz8TVDvv7SELJMhrF4m21K3f9RWfWX7ALM82t9U+OQzcI/agSduETaRkf+Hq/AgQozB6 X-Received: by 10.55.221.212 with SMTP id u81mr14330998qku.174.1512262895132; Sat, 02 Dec 2017 17:01:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512262895; cv=none; d=google.com; s=arc-20160816; b=GGDUzF9r07F02K92oIM4H0ndeAH9r3jhIMurBjjNk5RfCgE364fKfcMxCqSP7QwQDs YgNFu8iZFG/tkFHDtteNAtYZFos1/bLtviTat3zfWg7UpkltWx3t05p/8JTEcL3wfjBn 34n5vqxEA1b3S34AwvFVGqrKm6x6woaEXtPDJAYcp3Z/jceBYvaA84NYGuCZMaCNLI2F 5O8A90gvexSL7JBRDNmqb416g9NknXVZ1co0T88bwAxenWmoc+coJ+EokSME0MgS4dfS e9PUlLa1iEve748BeZqK4CqPK727Y/VYYZli+bOwUEkhEbCoAY6N67vk/rOpr0bUg1z9 6HVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=Roqow9/JQXlypIvFbd6N64+GSFGZG/bdb4gr+71qw0M=; b=RGA0qf5m7BRtYBcEVkll22lgE0rA6muhUbf3C7zrcc6iy6TOKRv9350ubhYNw0NMca URwap0bcteE7T4VN3fqhpbZVdBRri/cGDVKnSgycWCHSacD4s1y88xigkSaP9uFP0K37 Rp9oLAFdIk6jsEHHb6aisNy5+xiMoXjs7goEPt64wUaIdcmQjKhT7RImmUGdvTs3NJPR 2W5N87NQrOD1VfUq9KEMrhvVZodui6wYaB9p3iOKC/qDgm8sLbinyPRkTk5aRArGsFA2 XdFJORuPF3x5DOoAAjnC9oJ+ZCOaAK48Lmuy6oybIBg8fLXg7JdxuYqcvJNUWg+iRgHh jnsg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id l20si6500695qtl.109.2017.12.02.17.01.34; Sat, 02 Dec 2017 17:01:35 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id CD2C260804; Sun, 3 Dec 2017 01:01:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id CCD7460840; Sun, 3 Dec 2017 01:00:20 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id A81BB60730; Sun, 3 Dec 2017 01:00:13 +0000 (UTC) Received: from forward101p.mail.yandex.net (forward101p.mail.yandex.net [77.88.28.101]) by lists.linaro.org (Postfix) with ESMTPS id CE59B60724 for ; Sun, 3 Dec 2017 01:00:10 +0000 (UTC) Received: from mxback3g.mail.yandex.net (mxback3g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:164]) by forward101p.mail.yandex.net (Yandex) with ESMTP id 63B6C6A8302D for ; Sun, 3 Dec 2017 04:00:09 +0300 (MSK) Received: from smtp3o.mail.yandex.net (smtp3o.mail.yandex.net [2a02:6b8:0:1a2d::27]) by mxback3g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id gAXmQogTMV-09kK2elh; Sun, 03 Dec 2017 04:00:09 +0300 Received: by smtp3o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id rRTmwan6So-08di7nA2; Sun, 03 Dec 2017 04:00:08 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Sun, 3 Dec 2017 04:00:02 +0300 Message-Id: <1512262805-15125-4-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1512262805-15125-1-git-send-email-odpbot@yandex.ru> References: <1512262805-15125-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 321 Subject: [lng-odp] [PATCH v1 3/6] linux-gen: apply -msse4.2 only in x86 case X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Dmitry Eremin-Solenikov Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 321 (lumag:dpdk-system-master) ** https://github.com/Linaro/odp/pull/321 ** Patch: https://github.com/Linaro/odp/pull/321.patch ** Base sha: 5329e5211c447b9b823149baf76112eedfeb07fb ** Merge commit sha: 527862cca98549d4fc5bd0f966d3609477b20443 **/ platform/linux-generic/Makefile.am | 6 ++++++ platform/linux-generic/m4/odp_dpdk.m4 | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/platform/linux-generic/Makefile.am b/platform/linux-generic/Makefile.am index 9cb501cf3..bbe6a21c2 100644 --- a/platform/linux-generic/Makefile.am +++ b/platform/linux-generic/Makefile.am @@ -14,6 +14,12 @@ AM_CPPFLAGS += $(OPENSSL_CPPFLAGS) AM_CPPFLAGS += $(DPDK_CPPFLAGS) AM_CPPFLAGS += $(NETMAP_CPPFLAGS) +if PKTIO_DPDK +if ARCH_IS_X86 +AM_CFLAGS += -msse4.2 +endif +endif + odpincludedir= $(includedir)/odp odpinclude_HEADERS = \ include/odp/visibility_begin.h \ diff --git a/platform/linux-generic/m4/odp_dpdk.m4 b/platform/linux-generic/m4/odp_dpdk.m4 index c0d468c2a..d79d29b55 100644 --- a/platform/linux-generic/m4/odp_dpdk.m4 +++ b/platform/linux-generic/m4/odp_dpdk.m4 @@ -8,7 +8,7 @@ AC_ARG_WITH([dpdk-path], pktio_dpdk_support=yes],[]) if test "x$DPDK_PATH" = "xsystem" ; then - DPDK_CPPFLAGS="-msse4.2 -isystem/usr/include/dpdk" + DPDK_CPPFLAGS="-isystem/usr/include/dpdk" DPDK_LDFLAGS="" DPDK_PMD_PATH="`$CC --print-file-name=librte_pmd_null.a`" DPDK_PMD_PATH="`dirname "$DPDK_PMD_PATH"`" @@ -16,7 +16,7 @@ if test "x$DPDK_PATH" = "xsystem" ; then AC_MSG_FAILURE([Could not locate system DPDK PMD directory]) fi else - DPDK_CPPFLAGS="-msse4.2 -isystem $DPDK_PATH/include" + DPDK_CPPFLAGS="-isystem $DPDK_PATH/include" DPDK_LDFLAGS="-L$DPDK_PATH/lib" DPDK_PMD_PATH="$DPDK_PATH/lib" fi