From patchwork Wed Mar 23 09:48:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 64220 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp2562326lbc; Wed, 23 Mar 2016 02:48:25 -0700 (PDT) X-Received: by 10.107.11.148 with SMTP id 20mr2484947iol.111.1458726505068; Wed, 23 Mar 2016 02:48:25 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id p143si2895864ioe.96.2016.03.23.02.48.24; Wed, 23 Mar 2016 02:48:25 -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 Received: by lists.linaro.org (Postfix, from userid 109) id 5CCB861622; Wed, 23 Mar 2016 09:48:24 +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, 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 838E061600; Wed, 23 Mar 2016 09:48:20 +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 0FF6261618; Wed, 23 Mar 2016 09:48:18 +0000 (UTC) Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com [209.85.217.169]) by lists.linaro.org (Postfix) with ESMTPS id AB89E615FB for ; Wed, 23 Mar 2016 09:48:16 +0000 (UTC) Received: by mail-lb0-f169.google.com with SMTP id qe11so5968839lbc.3 for ; Wed, 23 Mar 2016 02:48:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=EvUkR+kcG3LI6FWMoq2AjBBmOtdDQUQ1kL+tCAT73dQ=; b=NPZ2xfOkMtABWGKhG4c93qt9gj1YvOXALXC420+XksQSVODgZHzF3DflXkptXsTiQl BwVoyoTlp91PERUAeE/3jDWZEnhsaNUQLGUe8xD+KvzbOSZVPu/3L/zQxO61CUGLsyLx 7fQNDAcZU9mT6S2jK9VYmQqevnzbzk+B/i1eSwiaz1TBnOJX+twBOezL5ClJznmWMaKC lFDmKlor/wCIjcTerVgmSRNo7mdzjTnwQAZEMpFPL8A6dQzx7eHJj+zoNrVnOTbFKTdw 2JEzvRcTWabf55f4zOVz3rNeUQDlZbbt9deeymQ71Hk8Usdnm6mSyaoKYQzsnS0bihts LQgg== X-Gm-Message-State: AD7BkJLP+BpoeO9gB43g9DEGz716LoENjicWztTN0CI/X83g9usR0DNftG5nlZGVwy2Oa5VKPo8= X-Received: by 10.112.166.3 with SMTP id zc3mr608657lbb.129.1458726495566; Wed, 23 Mar 2016 02:48:15 -0700 (PDT) Received: from localhost.localdomain (ppp91-77-172-79.pppoe.mtu-net.ru. [91.77.172.79]) by smtp.gmail.com with ESMTPSA id or8sm273313lbb.39.2016.03.23.02.48.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 23 Mar 2016 02:48:14 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Wed, 23 Mar 2016 12:48:11 +0300 Message-Id: <1458726491-4728-1-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.7.1.250.gff4ea60 X-Topics: patch Subject: [lng-odp] [API-NEXT PATCH] example: generator: add missing instance set 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: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Patch: api: init: add instance handle adds instance id, but for generator one branch of threads start is missing which lead to failure of odp_init_global(). Add missing instance id and initial missing structure initialization to zero. Signed-off-by: Maxim Uvarov --- I was harry to apply instance handle patch. That tiny fix is really needed. Maxim. example/generator/odp_generator.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/example/generator/odp_generator.c b/example/generator/odp_generator.c index 8f69c9c..3e4ca6b 100644 --- a/example/generator/odp_generator.c +++ b/example/generator/odp_generator.c @@ -836,8 +836,10 @@ int main(int argc, char *argv[]) odp_cpumask_zero(&thd_mask); odp_cpumask_set(&thd_mask, cpu); + memset(&thr_params, 0, sizeof(thr_params)); thr_params.start = thr_run_func; thr_params.arg = &args->thread[i]; + thr_params.instance = instance; odph_linux_pthread_create(&thread_tbl[i], &thd_mask, &thr_params);