From patchwork Tue Jan 27 12:31:13 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ciprian Barbu X-Patchwork-Id: 43838 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id BCF5B2409D for ; Tue, 27 Jan 2015 12:31:40 +0000 (UTC) Received: by mail-wi0-f198.google.com with SMTP id h11sf2367344wiw.1 for ; Tue, 27 Jan 2015 04:31:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:subject :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=XEFmbmYheXUa2dKoN8UQfVsoiJj1/DnokYMApp0vnLg=; b=CcFRwV6xRmHe27fRFOw+JpB/PQpOGuuE2otIG09znU90Op7cjFg04ODS+R6CQQcPRA 3ZswFp9+ucAnwnbutBH5GO1GZSfBhccSPs9fQ55Yexy2qp4DMq9ksgU5FGjLrPhAIPbf UySUtx2TgK4VdJ4XOPPCSdt/DyWfOpgsogMSOvQeQdOmJcrPSjb/QNWwMAjgjzjXb2rz l9+kALTKOrKHxq1VsxbWD5jKVSpN0sozSfjrbX4fKs+FP+SMGl0DM3/8Oz6Y1U18GlbP nRyX0bSHVViEjQFddeLk0nG4eIdC3FpEbKBAbyh5xopbVrZL1Wi0ELjCyaKjrUqCku6Z aaFA== X-Gm-Message-State: ALoCoQnVGy1Nqn1tNDKIzlNSSiZbBTbY9kf0L3eAyvMJKRRCkdHo6ahKMrTejUjMP4QMTbMJNtCl X-Received: by 10.112.99.37 with SMTP id en5mr195859lbb.17.1422361900001; Tue, 27 Jan 2015 04:31:40 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.234.169 with SMTP id uf9ls23523lac.75.gmail; Tue, 27 Jan 2015 04:31:39 -0800 (PST) X-Received: by 10.112.151.4 with SMTP id um4mr1387617lbb.50.1422361899781; Tue, 27 Jan 2015 04:31:39 -0800 (PST) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com. [209.85.217.172]) by mx.google.com with ESMTPS id ai4si1165242lbc.10.2015.01.27.04.31.39 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 27 Jan 2015 04:31:39 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) client-ip=209.85.217.172; Received: by mail-lb0-f172.google.com with SMTP id l4so12826675lbv.3 for ; Tue, 27 Jan 2015 04:31:39 -0800 (PST) X-Received: by 10.112.173.202 with SMTP id bm10mr1392565lbc.24.1422361899686; Tue, 27 Jan 2015 04:31:39 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.35.133 with SMTP id h5csp1084027lbj; Tue, 27 Jan 2015 04:31:39 -0800 (PST) X-Received: by 10.224.115.16 with SMTP id g16mr1391054qaq.97.1422361898516; Tue, 27 Jan 2015 04:31:38 -0800 (PST) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id e10si1139990qag.68.2015.01.27.04.31.37 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 27 Jan 2015 04:31:38 -0800 (PST) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YG5It-0007Kk-2x; Tue, 27 Jan 2015 12:31:35 +0000 Received: from mail-lb0-f171.google.com ([209.85.217.171]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YG5Im-0007Kd-Nm for lng-odp@lists.linaro.org; Tue, 27 Jan 2015 12:31:28 +0000 Received: by mail-lb0-f171.google.com with SMTP id u14so12748250lbd.2 for ; Tue, 27 Jan 2015 04:31:22 -0800 (PST) X-Received: by 10.152.23.73 with SMTP id k9mr1370705laf.54.1422361882762; Tue, 27 Jan 2015 04:31:22 -0800 (PST) Received: from cipriantemp.enea.se (sestofw01.enea.se. [192.36.1.252]) by mx.google.com with ESMTPSA id d8sm409914lah.15.2015.01.27.04.31.21 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 27 Jan 2015 04:31:21 -0800 (PST) From: Ciprian Barbu To: lng-odp@lists.linaro.org Date: Tue, 27 Jan 2015 14:31:13 +0200 Message-Id: <1422361873-5188-1-git-send-email-ciprian.barbu@linaro.org> X-Mailer: git-send-email 1.8.3.2 X-Topics: patch Subject: [lng-odp] [PATCH] example: l2fwd: fix a cpumask bug and compilation error X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: 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-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ciprian.barbu@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Signed-off-by: Ciprian Barbu --- Fix for https://bugs.linaro.org/show_bug.cgi?id=1146 example/l2fwd/odp_l2fwd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/example/l2fwd/odp_l2fwd.c b/example/l2fwd/odp_l2fwd.c index 10d5d32..74eaf84 100644 --- a/example/l2fwd/odp_l2fwd.c +++ b/example/l2fwd/odp_l2fwd.c @@ -146,6 +146,7 @@ static void *pktio_queue_thread(void *arg) } /* unreachable */ + return NULL; } /** @@ -393,7 +394,7 @@ int main(int argc, char *argv[]) odph_linux_pthread_create(&thread_tbl[i], &thd_mask, thr_run_func, &gbl_args->thread[i]); - cpu = odp_cpumask_next(&thd_mask, cpu); + cpu = odp_cpumask_next(&cpumask, cpu); } /* Master thread waits for other threads to exit */