From patchwork Mon Dec 11 16:00:04 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: 121423 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp2975879qgn; Mon, 11 Dec 2017 08:04:50 -0800 (PST) X-Google-Smtp-Source: ACJfBouF79UAHtqJwdPsqBkvassWmHy6XQXfGrKW/kWK3SiqMd+HkyfITYz31sLxuzENYn3Pzbiz X-Received: by 10.157.61.201 with SMTP id l67mr731391otc.384.1513008290561; Mon, 11 Dec 2017 08:04:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513008290; cv=none; d=google.com; s=arc-20160816; b=I+d2mSgNDkLRk2MiJE2vQHd+cdHuaEqvyVm4iUCf/pNJcvhRYHx/4vU3lFoP3R7sMx FwgeTVpAdBDlXQFWsYKfRK3i8F9QugE8Cu3IrZdR2qL0QuqXZJAz/u4/iY+hu82XgfRG ZYQty01j5HfqgSuCY6hNqEbFyE+HhW1rmfLfrOIuQxqcRrIj18ZpcJuNZetuC2F3/iRP ZeyFHviP1FsIf+SYAkk87+mSBbOKZOEkH4Phw90KwdBUu1qWRCxTuOKKMZqZiJXqYWpI CHaMWfPK+RO4w5s84ASVls/VdFb/yPRsoo/+H/fvIw2C6BPbr8hpdDnEXTX/YtSvg7v3 7e+Q== 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=KI0bxwZ1HHPe7Dxey1Q1oXhGM4PVj0OD8rJBfifWuUA=; b=zo5Rhl5b0jJHDtoo+yuj3kbfCMRy0N8Cn4FJiJo/RTGsgUOr8bqKyqKJh/bbCoyhnG AHj/2mS4ZfxMgLu5UTKeaBw8nqB+LWbEhyN8/8mn16jl0kcOHePm+bPab4TaFhVoJADO Nq+RAaXJCWAQ/lA30f5pl/qNRKxwkyXTYOuecKCIDV9K038nlyqVGQgWCNwnPw3dzudg +hkBXkqI1aPuXc7nISnmg8VCQkRKszBcPSlrg719jjMb4a4J4iWP5onLMzojfn7Z4s4e L70bIfCsWvEi0jeHb6T1rUvzOTKX2tVfMOLSAfE0H454cHu2fgqC+UN7eTWlGtlxMGwN 8evQ== 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 a2si2567784ite.44.2017.12.11.08.04.50; Mon, 11 Dec 2017 08:04:50 -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 0BB3B60954; Mon, 11 Dec 2017 16:04:50 +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=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 AF5CD608FC; Mon, 11 Dec 2017 16:00:52 +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 37A9F608FF; Mon, 11 Dec 2017 16:00:28 +0000 (UTC) Received: from forward100o.mail.yandex.net (forward100o.mail.yandex.net [37.140.190.180]) by lists.linaro.org (Postfix) with ESMTPS id 910D66092C for ; Mon, 11 Dec 2017 16:00:17 +0000 (UTC) Received: from mxback4j.mail.yandex.net (mxback4j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10d]) by forward100o.mail.yandex.net (Yandex) with ESMTP id 759B52A2317E for ; Mon, 11 Dec 2017 19:00:16 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback4j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id z7nHSwPirD-0Gn4UH1Z; Mon, 11 Dec 2017 19:00:16 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id BifhbGdIDb-0GTWmh7S; Mon, 11 Dec 2017 19:00:16 +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: Mon, 11 Dec 2017 19:00:04 +0300 Message-Id: <1513008012-9231-7-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513008012-9231-1-git-send-email-odpbot@yandex.ru> References: <1513008012-9231-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 335 Subject: [lng-odp] [PATCH API-NEXT v1 6/14] 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 Flag -msse4.2 should be used only for i?86/x86_64 targets, it does not make sense for any other target. Signed-off-by: Dmitry Eremin-Solenikov Reviewed-and-tested-by: Matias Elo --- /** Email created from pull request 335 (muvarov:devel/api-next_master_merge) ** https://github.com/Linaro/odp/pull/335 ** Patch: https://github.com/Linaro/odp/pull/335.patch ** Base sha: 630d8422564ebf4991b468cb38a29e9483fc2ec2 ** Merge commit sha: 2de2af9eca01b713e51c66fee7a5c7e535502f85 **/ platform/linux-generic/Makefile.am | 6 ++++++ platform/linux-generic/m4/odp_dpdk.m4 | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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 ba0fdc935..91f76e2de 100644 --- a/platform/linux-generic/m4/odp_dpdk.m4 +++ b/platform/linux-generic/m4/odp_dpdk.m4 @@ -5,7 +5,7 @@ pktio_dpdk_support=no AC_ARG_WITH([dpdk-path], [AS_HELP_STRING([--with-dpdk-path=DIR], [path to dpdk build directory])], [DPDK_PATH="$withval" - DPDK_CPPFLAGS="-msse4.2 -isystem $DPDK_PATH/include" + DPDK_CPPFLAGS="-isystem $DPDK_PATH/include" DPDK_LDFLAGS="-L$DPDK_PATH/lib" pktio_dpdk_support=yes],[])