From patchwork Tue Oct 24 08: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: 116913 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp5523551qgn; Tue, 24 Oct 2017 01:02:06 -0700 (PDT) X-Google-Smtp-Source: ABhQp+TCuV/Lqg8MnTUT+mdYpUEhrP6Mjivh4tWh+HD+9puDANjmWeTxIfZatsQBL7Te3cnM6SsU X-Received: by 10.55.39.5 with SMTP id n5mr21117700qkn.106.1508832126280; Tue, 24 Oct 2017 01:02:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508832126; cv=none; d=google.com; s=arc-20160816; b=UkAMAsm3QRj3IfMbsIybEjMW6b6ARr5OuY/FPJVF190U6HtTaZnAGXjUW/Jf/zJg7j c5mhArh3dTaLH6J29Qt6phGHBHqlGe4PN2De6dU5ouhQexIQuW/PS8mmviLeT3cRTg1i QfuBsttcib+mRwRIzvz9Ckdz6bbicbaXlHpOy8U41uD41BuUMhp8zAW0OQLDA5snzT3t /QecWVgPJo0OhSaI2ffKiBDlydH2sJ9r6SpQucFLGapCBI1K1d4FCalM7O6XGERtxGCr 29xPYb/VUkp0DPAbbHOgvbPJpPBhWL+49gXPggPtkhjiIh11IlmgS8otzG6PmjRzvVo4 Ho8g== 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=73XPLMNzYC85DKEYLUdYi5eodVZAlTsOWU2k2s6uM6o=; b=vrzn3cC+19664qtXyUDDL5yXkXVuqp0yOQoHApy4FIGZAU44uobclX/oMgGWFlpUIZ ov0HBwZuGgRXry9KoFn+QfvT9PyfrFPRSCLL8RnBGzdkE9bjrFWlNjXS+D3waIeVIbMr mKKUuwTaUtHv4RFbF4HkZrOFd3Y+nq2efrVyoj+TZwe2PxiuR6Nm7Frx0snxOMzPKuRu 7EK3AYxQTUHzBcU3wG/X887gae/P+4+kV3WphPqCWUrWqsTpqwb2aFWlg6M+8UBwtzCA 8O+J9PForb5XidKxIiHFd/BZ6OEyr9OOZacaMUC04YEVRKSaDJl2dr6FYW7OQCPSXqjU zUGg== 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 s47si1784158qtg.164.2017.10.24.01.02.06; Tue, 24 Oct 2017 01:02:06 -0700 (PDT) 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 056DB61D1E; Tue, 24 Oct 2017 08:02:06 +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 1E12561E03; Tue, 24 Oct 2017 08:01:04 +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 4C96960890; Tue, 24 Oct 2017 08:00:53 +0000 (UTC) Received: from forward103p.mail.yandex.net (forward103p.mail.yandex.net [77.88.28.106]) by lists.linaro.org (Postfix) with ESMTPS id 99A50628E1 for ; Tue, 24 Oct 2017 08:00:31 +0000 (UTC) Received: from mxback19j.mail.yandex.net (mxback19j.mail.yandex.net [IPv6:2a02:6b8:0:1619::95]) by forward103p.mail.yandex.net (Yandex) with ESMTP id D54B22185889 for ; Tue, 24 Oct 2017 11:00:29 +0300 (MSK) Received: from smtp3o.mail.yandex.net (smtp3o.mail.yandex.net [2a02:6b8:0:1a2d::27]) by mxback19j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id ewNpgoTom6-0ThOB6vk; Tue, 24 Oct 2017 11:00:29 +0300 Received: by smtp3o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id E1sIWHVkFs-0TEqfP5C; Tue, 24 Oct 2017 11:00:29 +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, 24 Oct 2017 11:00:02 +0300 Message-Id: <1508832006-16435-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1508832006-16435-1-git-send-email-odpbot@yandex.ru> References: <1508832006-16435-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 255 Subject: [lng-odp] [PATCH 2.0 v1 2/6] linux-gen: pktio: ipc: build ipc pktio based on configuration option 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: Bogdan Pricope Build ipc pktio based on configuration option Signed-off-by: Bogdan Pricope --- /** Email created from pull request 255 (bogdanPricope:2_0_pktio_sub_unif_pr) ** https://github.com/Linaro/odp/pull/255 ** Patch: https://github.com/Linaro/odp/pull/255.patch ** Base sha: d37aa7f1c0480273fb0ccfded44a13e3e5a8e42f ** Merge commit sha: e88dcc92184de56a453032c5b2ea7e664864fb04 **/ platform/linux-generic/m4/configure.m4 | 6 ++++++ platform/linux-generic/pktio/ipc.c | 4 ++++ platform/linux-generic/pktio/subsystem.c | 4 ++++ 3 files changed, 14 insertions(+) diff --git a/platform/linux-generic/m4/configure.m4 b/platform/linux-generic/m4/configure.m4 index 85d35f253..9c35a9962 100644 --- a/platform/linux-generic/m4/configure.m4 +++ b/platform/linux-generic/m4/configure.m4 @@ -88,3 +88,9 @@ m4_include([platform/linux-generic/m4/odp_schedule.m4]) AC_CONFIG_FILES([platform/linux-generic/Makefile platform/linux-generic/include/odp/api/plat/static_inline.h]) + +########################################################################## +# Enable default pktios build +########################################################################## +AC_DEFINE([ODP_PKTIO_IPC], [1], + [Define to 1 to enable IPC packet I/O support]) diff --git a/platform/linux-generic/pktio/ipc.c b/platform/linux-generic/pktio/ipc.c index 6505d7878..5ab957403 100644 --- a/platform/linux-generic/pktio/ipc.c +++ b/platform/linux-generic/pktio/ipc.c @@ -6,6 +6,8 @@ #include "config.h" +#ifdef ODP_PKTIO_IPC + #include #include #include @@ -826,3 +828,5 @@ ODP_MODULE_CONSTRUCTOR(ipc_pktio_ops) * will remove in Makefile scheme changes. */ int enable_link_ipc_pktio_ops = 0; + +#endif /* ODP_PKTIO_IPC */ diff --git a/platform/linux-generic/pktio/subsystem.c b/platform/linux-generic/pktio/subsystem.c index fbcf22d77..2ad856247 100644 --- a/platform/linux-generic/pktio/subsystem.c +++ b/platform/linux-generic/pktio/subsystem.c @@ -23,7 +23,9 @@ ODP_SUBSYSTEM_FOREACH_TEMPLATE(pktio_ops, term_global, ODP_ABORT) #ifdef ODP_PKTIO_DPDK extern int enable_link_dpdk_pktio_ops; #endif +#ifdef ODP_PKTIO_IPC extern int enable_link_ipc_pktio_ops; +#endif extern int enable_link_loopback_pktio_ops; #ifdef ODP_NETMAP extern int enable_link_netmap_pktio_ops; @@ -44,7 +46,9 @@ ODP_SUBSYSTEM_CONSTRUCTOR(pktio_ops) #ifdef ODP_PKTIO_DPDK enable_link_dpdk_pktio_ops = 1; #endif +#ifdef ODP_PKTIO_IPC enable_link_ipc_pktio_ops = 1; +#endif enable_link_loopback_pktio_ops = 1; #ifdef ODP_NETMAP enable_link_netmap_pktio_ops = 1;