From patchwork Wed Feb 14 08:00:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 128315 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp341854ljc; Wed, 14 Feb 2018 00:01:47 -0800 (PST) X-Google-Smtp-Source: AH8x225j1GTFk5qgSwLp79VvCxIEXfT0AOgNIllXae0T7y7wMSOgtEjDaPs9JculdsM7cqOMRSZZ X-Received: by 10.55.71.202 with SMTP id u193mr6405058qka.240.1518595307781; Wed, 14 Feb 2018 00:01:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518595307; cv=none; d=google.com; s=arc-20160816; b=UlB1y5Z9D+fwJYaN3DbfJ35liIYJtw0BMN2oNxWW/PFS66jVLY9gksfxfj3sA+zEDB lt9mkzEOLDfVpXrNeLVZXkuq5t2V9FsNw1aONejNHJvfMDNSgiNJ5g+9KVV0ugbdgGz/ k4Wntp3Jz2lrEiI85e3TyN+UJpYFEOyoX4v+0yOaLnFcnjExFNfg+sTAUM4ReUfNGNJg mHzaeIhok9HFWbT9SKBe5oPTvu+3Zvr7F1vlv72drJnCYDyr8zHUspfSfmGLX4n757qA yBm8BkujFQQ8JIvcZICCMRfbAdXrCb1BW5+e1+pl2do0it1/IM6ohWdQcaOdtmBNbeDI 209A== 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=aDvai6mMHPbfqL4PMnEIvMJ0qevALGcV8/vw8ZOBZ7I=; b=gpWhfWr+H/1S0HXbtwSNv1KMIHpbPhZuLPHwqmDB70aEC4nylwtmvZwapU5kYtSz6r iq6BDOjoN6vA8QlQsICd2KyphXFZIWV2Bopq8StRRaP9GC6Ujf65ehfrX2lj/CQOhYK2 DiyhuznDEhnKtgVLefxArIZkB9J+RNKQg3g4HRdh4k9fbt/4IWZYWduGTLEndNFpmfpd Ub++KoeCIc+Y7bV/4FxonGbHOF0tuowqiBU3hl1mpLD7Rx+n93X1UO102jkeaQAA0+ie PqqxKJth5C2+U2IHn7vs+zcPi3+hSlI7JsmBcOS3sukWzYrcnbNB8H0zkX8JnUT+MsjL 7pjQ== 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 i93si3342739qtd.240.2018.02.14.00.01.47; Wed, 14 Feb 2018 00:01:47 -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 68396617D5; Wed, 14 Feb 2018 08:01:47 +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_H2 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 4004D607C4; Wed, 14 Feb 2018 08:00:45 +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 BB0C6607C4; Wed, 14 Feb 2018 08:00:40 +0000 (UTC) Received: from forward105j.mail.yandex.net (forward105j.mail.yandex.net [5.45.198.248]) by lists.linaro.org (Postfix) with ESMTPS id 89021614E3 for ; Wed, 14 Feb 2018 08:00:25 +0000 (UTC) Received: from mxback6o.mail.yandex.net (mxback6o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::20]) by forward105j.mail.yandex.net (Yandex) with ESMTP id 22434184389 for ; Wed, 14 Feb 2018 11:00:24 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback6o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id V58vBD6Zal-0N60sFOT; Wed, 14 Feb 2018 11:00:24 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id Y4JUh4BhDF-0NZKDSHq; Wed, 14 Feb 2018 11:00:23 +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: Wed, 14 Feb 2018 11:00:17 +0300 Message-Id: <1518595221-854-4-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1518595221-854-1-git-send-email-odpbot@yandex.ru> References: <1518595221-854-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 462 Subject: [lng-odp] [PATCH v1 3/7] linux-gen: set DPDK's -msse4.2 flag during configure 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 Use ${host} during configure time to detect if we should enable -msse4.2 flag when building with DPDK. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 462 (lumag:default-abi) ** https://github.com/Linaro/odp/pull/462 ** Patch: https://github.com/Linaro/odp/pull/462.patch ** Base sha: 41b3fa2cd994a7ef68290a07dcde5564e4640847 ** Merge commit sha: 92a3ed64c30441cbca76e6f8ab5c086fe0c83a18 **/ platform/linux-generic/Makefile.am | 6 ------ platform/linux-generic/m4/odp_dpdk.m4 | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/platform/linux-generic/Makefile.am b/platform/linux-generic/Makefile.am index bb5bc8134..7f212fe5e 100644 --- a/platform/linux-generic/Makefile.am +++ b/platform/linux-generic/Makefile.am @@ -13,12 +13,6 @@ 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 - if !ODP_ABI_COMPAT odpapiplatincludedir= $(includedir)/odp/api/plat odpapiplatinclude_HEADERS = \ diff --git a/platform/linux-generic/m4/odp_dpdk.m4 b/platform/linux-generic/m4/odp_dpdk.m4 index b2193a168..cb2ed60df 100644 --- a/platform/linux-generic/m4/odp_dpdk.m4 +++ b/platform/linux-generic/m4/odp_dpdk.m4 @@ -34,6 +34,12 @@ then ODP_DPDK([$DPDK_PATH], [], [AC_MSG_FAILURE([can't find DPDK])]) + case "${host}" in + i?86* | x86*) + DPDK_CPPFLAGS="${DPDK_CPPFLAGS} -msse4.2" + ;; + esac + AC_DEFINE([ODP_PKTIO_DPDK], [1], [Define to 1 to enable DPDK packet I/O support]) AC_DEFINE_UNQUOTED([ODP_DPDK_ZERO_COPY], [$zero_copy],