From patchwork Mon Nov 6 11:00:05 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: 118015 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp2628986qgn; Mon, 6 Nov 2017 03:01:20 -0800 (PST) X-Google-Smtp-Source: ABhQp+QnpgvPB744MmjQX/qDrU2ruaeJdT04oKv6sry1aoiPs5x6eBK9p5b3ZXGlxvbJSwvoBC0Y X-Received: by 10.55.27.88 with SMTP id b85mr4521531qkb.144.1509966080848; Mon, 06 Nov 2017 03:01:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1509966080; cv=none; d=google.com; s=arc-20160816; b=t+IfScrpmvs7dRkt5OkuonroquLBlAOpyLgVotk55PzMJhWEcOGspW5mz5+6idl+lJ QYQEGWXjYUnxRmuNlQQWLiPutZLInziaRhqVt1mL9I8tLPy6E9XQhkSK43Bzk58lbNN6 QvitKEIZMxtzgZxQd1JOl/wX1JchAtBvyWZdEk1O8BtdD/pIthYfrCgjGk7gN5nVEhhS 2Fw9rCJ8IKEnAwqL85V4OLerQZX8oPeFwn33OgQR0DfLHxpHQ1enxgdstBWxiFJykRt2 RnllW1AAYe14OlW/19UDRK7HuN9j/ZVe0vdcyzyAxJiTh3TlsWp3XL1eCCzy3iU/NIrO Op2Q== 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=ZPSB3UH50uR1MfsEjtR6NnoObH45SOZYK3wwFk8I3os=; b=z19sTpeZk/UvCsqpf1DGk6iX5VUJkl4PSNrx7+irPPvaDqyj9UpyIKR+K+RYmATIMO 4Fhri4jOGCBqSIf6KKHL+TB6eoiIwWrXimbiKIZAG9uKe+SN/wQOpEf2HBhwzgKCBmfE WH03sI5ncnPNGiec4LSFp36Cdg/21Z3U/xCO7yVfGUC+QeP5c+LJ64YIkzX2JMUeHe0s M6EfpIkIEmUZDSDgs79te6EMh6ZnIerJ037OCS6g8WjsfWdZuId10O0mFLrlDchC3YZI AsRDBxJDVIuocKzaXv93GCNxYkrR82oAavtMgcfg1b9XJYRNKpZ5hqy7wzDXvymPMYFo Pwjg== 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 v135si1929802qkb.14.2017.11.06.03.01.20; Mon, 06 Nov 2017 03:01:20 -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 8ECBA6072E; Mon, 6 Nov 2017 11:01:20 +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 468EB6072E; Mon, 6 Nov 2017 11:00:25 +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 6A5816072E; Mon, 6 Nov 2017 11:00:15 +0000 (UTC) Received: from forward106o.mail.yandex.net (forward106o.mail.yandex.net [37.140.190.187]) by lists.linaro.org (Postfix) with ESMTPS id 171A860593 for ; Mon, 6 Nov 2017 11:00:13 +0000 (UTC) Received: from mxback9j.mail.yandex.net (mxback9j.mail.yandex.net [IPv6:2a02:6b8:0:1619::112]) by forward106o.mail.yandex.net (Yandex) with ESMTP id 67D76781F19 for ; Mon, 6 Nov 2017 14:00:11 +0300 (MSK) Received: from smtp4j.mail.yandex.net (smtp4j.mail.yandex.net [2a02:6b8:0:1619::15:6]) by mxback9j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id srOxtBG9xd-0BqGn5uI; Mon, 06 Nov 2017 14:00:11 +0300 Received: by smtp4j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id iHi0qYvJl4-0A0eitlU; Mon, 06 Nov 2017 14:00:11 +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, 6 Nov 2017 14:00:05 +0300 Message-Id: <1509966006-16692-4-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509966006-16692-1-git-send-email-odpbot@yandex.ru> References: <1509966006-16692-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 276 Subject: [lng-odp] [PATCH v2 3/4] linux-generic: init: implement odp_init_param_init() 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: Bill Fischofer Signed-off-by: Bill Fischofer Reviewed-by: Petri Savolainen Signed-off-by: Maxim Uvarov --- /** Email created from pull request 276 (muvarov:next) ** https://github.com/Linaro/odp/pull/276 ** Patch: https://github.com/Linaro/odp/pull/276.patch ** Base sha: f318c88f26b15140dda243e6a1d27e3c8f9d275b ** Merge commit sha: 40eee55053ce892b452dc5e7033bbbdb030792f4 **/ platform/linux-generic/odp_init.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/platform/linux-generic/odp_init.c b/platform/linux-generic/odp_init.c index 92a583702..6a45f3986 100644 --- a/platform/linux-generic/odp_init.c +++ b/platform/linux-generic/odp_init.c @@ -25,6 +25,11 @@ struct odp_global_data_s odp_global_data; +void odp_init_param_init(odp_init_t *param) +{ + memset(param, 0, sizeof(odp_init_t)); +} + int odp_init_global(odp_instance_t *instance, const odp_init_t *params, const odp_platform_init_t *platform_params ODP_UNUSED)