From patchwork Thu May 26 23:46:46 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 68720 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp659026qge; Thu, 26 May 2016 16:49:20 -0700 (PDT) X-Received: by 10.237.53.161 with SMTP id c30mr11734772qte.4.1464306560245; Thu, 26 May 2016 16:49:20 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id q87si15025522qkq.207.2016.05.26.16.49.20; Thu, 26 May 2016 16:49:20 -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 dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id E28446744A; Thu, 26 May 2016 23:49:19 +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 D3B2067451; Thu, 26 May 2016 23:47:52 +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 596E267447; Thu, 26 May 2016 23:47:49 +0000 (UTC) Received: from mail-oi0-f41.google.com (mail-oi0-f41.google.com [209.85.218.41]) by lists.linaro.org (Postfix) with ESMTPS id 7A99667450 for ; Thu, 26 May 2016 23:47:02 +0000 (UTC) Received: by mail-oi0-f41.google.com with SMTP id j1so149239280oih.3 for ; Thu, 26 May 2016 16:47:02 -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:in-reply-to :references; bh=80n3ja+OhlYX1GKHXsc38WSw91qCBQ/Q3Oys7zrLLeY=; b=P4Sxab3zy6uYig93uCib8RlexNcqwUuP2M3GK8Z/s1WyNnhWvIGLw6YpXlUSeh5Mog UY3ELlGgYFwj5S6kdwKujHfCtba25c7+C1yESHnwxhLFS/YNn8qhISWYNvaeN9Y5vg5S K8yGjYW3HgxZSWt4Rhcu6Gm9IUF6bHT9A4HkkUifTZo+5CZWYnZg0EbdcYvo6XKwNJGX bhCRUEbxOmT0oXkKm6frhx0uUQBYNFJ2fyhdnD6BvwTfPdWJzvnPBQfmlAi3EivhHnTs LYl/LotA5Dhy8EqYfksb9T3cyUyJAr/73n2rSBlcLLxcx/6F8vDYPRtTQxoa2XNEmDOn Dc9w== X-Gm-Message-State: ALyK8tKQJtM7Gvq2aEQpqqvlFDKSrWQwlozsVTmTDxWEx9gaI8zxwKDGGwrqhQFXckmxX/3Fd9Q= X-Received: by 10.202.72.85 with SMTP id v82mr7631742oia.38.1464306421957; Thu, 26 May 2016 16:47:01 -0700 (PDT) Received: from localhost.localdomain (cpe-66-68-129-43.austin.res.rr.com. [66.68.129.43]) by smtp.gmail.com with ESMTPSA id c7sm7720581oia.8.2016.05.26.16.47.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 26 May 2016 16:47:01 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Thu, 26 May 2016 18:46:46 -0500 Message-Id: <1464306409-7325-8-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1464306409-7325-1-git-send-email-bill.fischofer@linaro.org> References: <1464306409-7325-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv3 07/10] linux-generic: tm: check for proper init of tm_system_thread 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" Add an RC check for odp_init_local() to ensure that tm_system_thread() is launched properly. Signed-off-by: Bill Fischofer --- platform/linux-generic/odp_traffic_mngr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/linux-generic/odp_traffic_mngr.c b/platform/linux-generic/odp_traffic_mngr.c index fff1c35..72f9493 100644 --- a/platform/linux-generic/odp_traffic_mngr.c +++ b/platform/linux-generic/odp_traffic_mngr.c @@ -2280,7 +2280,8 @@ static void *tm_system_thread(void *arg) uint32_t destroying, work_queue_cnt, timer_cnt; int rc; - odp_init_local(INSTANCE_ID, ODP_THREAD_WORKER); + rc = odp_init_local(INSTANCE_ID, ODP_THREAD_WORKER); + ODP_ASSERT(rc == 0); tm_system = arg; _odp_int_timer_wheel = tm_system->_odp_int_timer_wheel; input_work_queue = tm_system->input_work_queue;