From patchwork Tue Jun 13 12:55:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 105162 Delivered-To: patch@linaro.org Received: by 10.182.29.35 with SMTP id g3csp449753obh; Tue, 13 Jun 2017 05:56:27 -0700 (PDT) X-Received: by 10.200.43.99 with SMTP id 32mr76269007qtv.6.1497358587775; Tue, 13 Jun 2017 05:56:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497358587; cv=none; d=google.com; s=arc-20160816; b=Z8v1DvRQglP8NXb+A2czzh0D6eyV00l/vRSSi8oKRs+NWV9UsmVgWU3Gk8WYkkdJ1w IYYvSc9FA9fiCz1I7Yy/6FP/v2zGeV1ww51YbcDTIB2jKQCV766bCKdL+JucAwJcWFlP jUovJXENA0WwFwYJkufii+OeVA40LZ6NoWbWUO15fGTd100FMPCEqo3rVbXXCTzQ+jrS JUnYGbSE5ALoFt6tbNDeTfTyZ4CDsfxxO7wZY/Dl0Wt+m3wsAQKgJCc04sfHdJpqDkdb OusswBLuNzW93TCkb0f3WPUjtuB1Zhlqx2Z/oIM+XFtQ8qiBirNyMMKPwFQ2GfCuFdZO klTA== 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=NSFu8kXUu3CpCobxm1qSRby7rHUq08BdxRnUrfpMkjbf2r60cxBxYrBFCB93bJHmtX z/7VV0nMLJ5rsEgZrtVPQXK3puvOu9H3ZZuSHDLCsAEi4cCCboidl0lWM+1dfZDAle7D CPX19K2GdKORMg2vPn/EGh+RLR5sTVcP8UCQrec26dI99KEZ9SUKW6QORVbYKM7WASA9 sfCuC44jMeisA/Trl+bXR14qavnjAb4UBsKSWAdrJ7C7sKeM4zJNcQQL8p9yFkMlImuA PLMRloAUaixFDvhcWgGC5cwKI+Tf7PbCsO8pjeKJefmenc/vaqtMZg9nh16EfufC4lR0 4tVg== 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 o128si11587074qka.274.2017.06.13.05.56.27; Tue, 13 Jun 2017 05:56:27 -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 673EE606B5; Tue, 13 Jun 2017 12:56:27 +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 E285B60BF6; Tue, 13 Jun 2017 12:55:28 +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 A5C23609E3; Tue, 13 Jun 2017 12:55:22 +0000 (UTC) Received: from mail-ot0-f178.google.com (mail-ot0-f178.google.com [74.125.82.178]) by lists.linaro.org (Postfix) with ESMTPS id 9E86C609E3 for ; Tue, 13 Jun 2017 12:55:21 +0000 (UTC) Received: by mail-ot0-f178.google.com with SMTP id i31so86966335ota.3 for ; Tue, 13 Jun 2017 05:55:21 -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=U9kaW3KSi5EXOkVj1jaYMjDSbpilxooeymqpaZ/JY9BdNVaMFFnKPg6Vlf3oFVBn7c XQLvIs9gM5WO5jVkl1rCVcAFGP7ZkTc3T3GhLT77fyanwjdmox9tT1LjifzhKmz/X/hE ItIOH9HQdzfNGWpDQPm3SWT7x5s3Z2ZGL6ZrzrE+eJdomEY6n1kNjvsYy/zhaXBpku+e jVqFnM9esd3JVwzL+V/ueoWNSnnTxlVrgdB49Zyb0LzFXRaabBzmvVEa4kbMpT5OFfas rqmhhB1w0OYgSrf+5DQwbovNYge4B6v2oYcI7k4AS9CwMhQjJYda7mmcu6FyGTSdkjzo iHKg== X-Gm-Message-State: AKS2vOw7bvZ6X3vlRzh/l/l9it81exEBH1PmSnD6d0AZVbIWbWSDcBUm 4AiP0Z/WuLwv4cnQQ2wczH4w X-Received: by 10.157.3.45 with SMTP id 42mr29502940otv.234.1497358520941; Tue, 13 Jun 2017 05:55:20 -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 f35sm6530517otd.15.2017.06.13.05.55.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Jun 2017 05:55:20 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Tue, 13 Jun 2017 07:55:13 -0500 Message-Id: <20170613125515.24874-3-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170613125515.24874-1-bill.fischofer@linaro.org> References: <20170613125515.24874-1-bill.fischofer@linaro.org> Subject: [lng-odp] [API-NEXT PATCHv7 3/5] 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)