From patchwork Tue Aug 22 10:00:01 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: 110640 Delivered-To: patch@linaro.org Received: by 10.182.109.195 with SMTP id hu3csp5103927obb; Tue, 22 Aug 2017 03:17:45 -0700 (PDT) X-Received: by 10.55.40.18 with SMTP id o18mr150574qkh.311.1503397065083; Tue, 22 Aug 2017 03:17:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503397065; cv=none; d=google.com; s=arc-20160816; b=KdTudzhZt8gezZ0N3aCfAfc4lh8PIIKYpORNtlxkMtkpueirnLZwXKveBqTYfzkjn8 +QYmeCoW1g3h88o9MK69Smd7WLP3VLL+glPW9d/MUeNjxG9iRhSj6qAVnzisvjjxMcQg Te5Qwc/wDQI1sygL+0PdTSkRfUQEcV1WLfxkVfATS6yRqfd0pJkw2vScG4XeNqwQNMoK 4dPXeajxOUB84FBJt5lNsD2GpEiuZXub1zfNd/IAdCvbrRKE0I3SUlxd33xzlp6utyKu OjFJ9i+AUD002sefrp1oIQl1uAzjggUO45EnT7BNfXCvLJR3XZNTdS/XxqNJHB7AWHwn nuXw== 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=eMAxFgpvp0h8U7DTCNImtbK6VIHXKEi8OG90KasllDI=; b=T3YSKsIjeqWmyKJTRzSVOmeKsCoANYUvG5u0WU2qEDEAS1XHunD67lLUQH6EHDlhS7 qK3yWmbSHCAB3MFcHFm5QX9gqnUM8dmAUU/QEmQicnEj/wQnQ2PW3YF+kzGhbrDKiGYc IcYxl3+2UwKcLpPEflKdEyR4TTANK+N9RpB+pbpITBq9PD2Y+2HvzGbsdgY9jYRM4n3N wvWqWcWUcRTrB5FuPFPCY9e0o/5a66qy2wEomid74H5sGIdk+f5ub804ELeKoJTG1Pqq wEvH+lVVcKQWVIMM3x6pBBAuNKxA18Sa+7thgyv9sRI/Re6hdcmPs0Ym9GF1Hy9eNPQx L6fw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 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 (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id g6si13403232qkf.136.2017.08.22.03.17.44; Tue, 22 Aug 2017 03:17:45 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 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 A3FDF60A35; Tue, 22 Aug 2017 10:17:44 +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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 7A47C65C0A; Tue, 22 Aug 2017 10:02:06 +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 2AEC6644D9; Tue, 22 Aug 2017 10:01:34 +0000 (UTC) Received: from forward101p.mail.yandex.net (forward101p.mail.yandex.net [77.88.28.101]) by lists.linaro.org (Postfix) with ESMTPS id A55B9646DE for ; Tue, 22 Aug 2017 10:00:27 +0000 (UTC) Received: from mxback8g.mail.yandex.net (mxback8g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:169]) by forward101p.mail.yandex.net (Yandex) with ESMTP id A397D6A84AAE for ; Tue, 22 Aug 2017 13:00:26 +0300 (MSK) Received: from smtp1j.mail.yandex.net (smtp1j.mail.yandex.net [2a02:6b8:0:801::ab]) by mxback8g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 7WHmaEb0zE-0QmK4Lvx; Tue, 22 Aug 2017 13:00:26 +0300 Received: by smtp1j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id Rlal5nTP8B-0Qf4fRuM; Tue, 22 Aug 2017 13:00:26 +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: Tue, 22 Aug 2017 13:00:01 +0300 Message-Id: <1503396009-8350-18-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1503396009-8350-1-git-send-email-odpbot@yandex.ru> References: <1503396009-8350-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 127 Subject: [lng-odp] [PATCH v5 17/25] configure: AC_DEFINE(ODP_PKTIO_DPDK)/AC_DEFINE(ODP_DPDK_ZERO_COPY) 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 Autoconf macros instead of defining macro by hand. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 127 (lumag:improve-build) ** https://github.com/Linaro/odp/pull/127 ** Patch: https://github.com/Linaro/odp/pull/127.patch ** Base sha: aecb3c7a442b426761f1e6f43308a1e9ea709ef3 ** Merge commit sha: 86e036501e05c61e5570d0908af382a61c2d4e89 **/ platform/linux-generic/m4/odp_dpdk.m4 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/platform/linux-generic/m4/odp_dpdk.m4 b/platform/linux-generic/m4/odp_dpdk.m4 index cebf1028..b6554165 100644 --- a/platform/linux-generic/m4/odp_dpdk.m4 +++ b/platform/linux-generic/m4/odp_dpdk.m4 @@ -47,7 +47,11 @@ then done AS_VAR_APPEND([DPDK_PMDS], [--no-whole-archive]) - ODP_CFLAGS="$ODP_CFLAGS -DODP_PKTIO_DPDK -DODP_DPDK_ZERO_COPY=$zero_copy" + 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], + [Define to 1 to enable DPDK zero copy support]) + DPDK_LIBS="-L$DPDK_PATH/lib -ldpdk -lpthread -ldl -lpcap -lm" AC_SUBST([DPDK_CPPFLAGS]) AC_SUBST([DPDK_LIBS])