From patchwork Sun Jun 11 23:59:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 103572 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp711048qgd; Sun, 11 Jun 2017 17:00:30 -0700 (PDT) X-Received: by 10.237.53.102 with SMTP id b35mr58154704qte.83.1497225630867; Sun, 11 Jun 2017 17:00:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497225630; cv=none; d=google.com; s=arc-20160816; b=FCjOyF23doyWt6KeZ6EzPpqj7V+j05+6a2qRlCl3SBz/bUUMmPAaIJKmCktVhPpjd0 yBN4J52E8/nTCm56DDPRFGstGw248GhQSiqPBVEPM8x8YWnGGLHyG5XTcI8mKVKOE0R9 QSbkyO3IF62DuIDW/cs2uUlJrQkq3c4GabtZbz6YPvWBXryCpEeAgdCeAd4AAmv2rmjw 5hveZdvOiBaHbA21pE9EroY1oBnVOegKiHlulmRpDPytJI+Kd3vXqGhSNGYqktUKMPDp XmVMSWqNnQ/JgQg9S6tUY3bSbTc6ZQvAzhAaAdu7wGvXid2woA65bOf94e3UEFMpfjXi SEsg== 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:references:in-reply-to :message-id:date:to:from:delivered-to:arc-authentication-results; bh=gpHEvZeqc4YTZqGiStLm9ZDaUW9tSYvVtFT+sQHpXQ4=; b=vzK079iV9nZLg8fEVwy9m7Xckt6QYVP764mPSYVNhFkcJrCzFrSNv/oPkT/G+sJua2 7qViCAImHtl+TcROtQsdqIaMxr5yDNK14l0oLCuCzliYty8RvBPvXUBwnyiwnt9bMtVA qSpUN27akR7vpbPM/iT0FhdxmCDCrM5ZDfOsVdJEyNB3s4Axe00gscAoY4NwOqv3tS2Q bLTCH1+h+seyZeVcfuMiDetYXMiiHD78YXVkVRyYmPGZRUqaC38gFW4gmbse1Ybu3UF6 5fLQaMbs+b0FIAVME0SPQ1+oIFSubHCtmANb9QuM3z5tKxajcqA+/DpP+GPHLyStxZzq AS9A== 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id q18si6840503qtg.286.2017.06.11.17.00.30; Sun, 11 Jun 2017 17:00:30 -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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 8CBCE60B41; Mon, 12 Jun 2017 00:00:30 +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.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, RCVD_IN_SORBS_SPAM, 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 9064860B49; Sun, 11 Jun 2017 23:59:34 +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 6998E60ACD; Sun, 11 Jun 2017 23:59:27 +0000 (UTC) Received: from mail-oi0-f45.google.com (mail-oi0-f45.google.com [209.85.218.45]) by lists.linaro.org (Postfix) with ESMTPS id 36E8160ACD for ; Sun, 11 Jun 2017 23:59:26 +0000 (UTC) Received: by mail-oi0-f45.google.com with SMTP id e11so7490993oia.2 for ; Sun, 11 Jun 2017 16:59:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=gpHEvZeqc4YTZqGiStLm9ZDaUW9tSYvVtFT+sQHpXQ4=; b=MEy8xi0YL29uGj5Sn97pyC54I0SpVXIB3+nnnjnGMgSZ3Va8tBMKZmRowMDI8qRZ2U ry3KESWctOjsXX/a68zjev2BlC5Tw+4gQc6skEPNEtfcQygkvte9cnPTyWm7mpE4d39Z FU5KvP4QUAMYFPp58m5nNrVVzJqlHQmQ9zz8ZZJOHQwu4nk0dvdxqIW5T0/eWGsfwHva TMpP3idGA4Xhpb2Ab78LBabvU5rvv5LC//0/8tQpmxE6pyueLOG3vCLSIbq8FHEKIZEv 7cO+OmOICRVnHN7rfKTui/MO3Ex1N880FUfcI7t+Sql81Twnqq0vkFkr+mebTSFMAztO cCeQ== X-Gm-Message-State: AODbwcBz5Rux5Ok3c25zB8HIsQn//e2w+YWu+bsCUrXoOFO6UeCoqit8 f5d+5zjyqS6pyhI6NeyWb0vB X-Received: by 10.202.216.3 with SMTP id p3mr22926973oig.183.1497225565463; Sun, 11 Jun 2017 16:59:25 -0700 (PDT) Received: from localhost.localdomain (cpe-70-121-83-241.austin.res.rr.com. [70.121.83.241]) by smtp.gmail.com with ESMTPSA id o70sm4128058oik.30.2017.06.11.16.59.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Jun 2017 16:59:24 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Sun, 11 Jun 2017 18:59:18 -0500 Message-Id: <20170611235919.10052-3-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170611235919.10052-1-bill.fischofer@linaro.org> References: <20170611235919.10052-1-bill.fischofer@linaro.org> Subject: [lng-odp] [API-NEXT PATCHv3 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" Signed-off-by: Bill Fischofer --- platform/linux-generic/odp_init.c | 5 +++++ 1 file changed, 5 insertions(+) -- 2.11.0 diff --git a/platform/linux-generic/odp_init.c b/platform/linux-generic/odp_init.c index 31bd7c73..62a1fbc2 100644 --- a/platform/linux-generic/odp_init.c +++ b/platform/linux-generic/odp_init.c @@ -147,6 +147,11 @@ static int read_configfile(void) return 0; } +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)