From patchwork Wed Jan 28 16:01:28 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ciprian Barbu X-Patchwork-Id: 43880 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f69.google.com (mail-wg0-f69.google.com [74.125.82.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7BBF223FFF for ; Wed, 28 Jan 2015 16:02:03 +0000 (UTC) Received: by mail-wg0-f69.google.com with SMTP id x12sf11491126wgg.0 for ; Wed, 28 Jan 2015 08:02:02 -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:in-reply-to :references: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=ipxrTSDG0aqdZBkYYKMcDf6/4fW5zOT9eZDd7IXMeDk=; b=JJs8rlf2ZHJPFlrRE5qxCITF7q5OP51rZR/OVe4/LDwoDGKuvbShrLwIjryJEvbStG yC0RQLLo+3sw3P/QOd7JKCSAe8bALCDcIs0xv2+pMynPAyASgw23bFNGGfSIvibMzqka o+lWN5tIu+76gcDh27pPSZ/ckoyY6COFdhtTmG1ZuQMMhGwoJa4OIAXcdMbUA8Hwmh/j 5c1xuqh/PCFHiuB0wN3cXYg2hd5Sj8OAd78IxfoZ01wskO8R5OTXRqYHdk7kU79ADDBk LDPSQ6zfCH1i2yjf8cSBJ2+Kx6WuMSmPTcQcT9SGAXN+Ci8Zkk7wf3sKiodxweYmF619 cijQ== X-Gm-Message-State: ALoCoQnBGvUhvtcdAmApYZNhLRVvoBM28XmjVoRY8pJQM1cD6Azi4MO/rpymfVO6xIWu+eM1QtMU X-Received: by 10.152.2.40 with SMTP id 8mr1140976lar.7.1422460922684; Wed, 28 Jan 2015 08:02:02 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.120.67 with SMTP id la3ls77210lab.25.gmail; Wed, 28 Jan 2015 08:02:02 -0800 (PST) X-Received: by 10.112.172.167 with SMTP id bd7mr9246128lbc.14.1422460922532; Wed, 28 Jan 2015 08:02:02 -0800 (PST) Received: from mail-la0-f53.google.com (mail-la0-f53.google.com. [209.85.215.53]) by mx.google.com with ESMTPS id je4si4813027lbc.47.2015.01.28.08.02.02 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 28 Jan 2015 08:02:02 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.53 as permitted sender) client-ip=209.85.215.53; Received: by mail-la0-f53.google.com with SMTP id gq15so19847371lab.12 for ; Wed, 28 Jan 2015 08:02:02 -0800 (PST) X-Received: by 10.112.90.170 with SMTP id bx10mr9041565lbb.69.1422460922347; Wed, 28 Jan 2015 08:02:02 -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 h5csp1484605lbj; Wed, 28 Jan 2015 08:02:01 -0800 (PST) X-Received: by 10.170.174.197 with SMTP id q188mr1788732ykd.110.1422460920960; Wed, 28 Jan 2015 08:02:00 -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 n9si6423959qas.108.2015.01.28.08.01.59 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 28 Jan 2015 08:02:00 -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 1YGV41-0006Tl-UO; Wed, 28 Jan 2015 16:01:57 +0000 Received: from mail-lb0-f175.google.com ([209.85.217.175]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YGV3r-0006TJ-Uu for lng-odp@lists.linaro.org; Wed, 28 Jan 2015 16:01:48 +0000 Received: by mail-lb0-f175.google.com with SMTP id 10so19504643lbg.6 for ; Wed, 28 Jan 2015 08:01:41 -0800 (PST) X-Received: by 10.112.222.135 with SMTP id qm7mr8982867lbc.19.1422460901403; Wed, 28 Jan 2015 08:01:41 -0800 (PST) Received: from cipriantemp.enea.se (sestofw01.enea.se. [192.36.1.252]) by mx.google.com with ESMTPSA id xn1sm1442228lbb.27.2015.01.28.08.01.39 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 28 Jan 2015 08:01:40 -0800 (PST) From: Ciprian Barbu To: lng-odp@lists.linaro.org Date: Wed, 28 Jan 2015 18:01:28 +0200 Message-Id: <1422460889-12144-2-git-send-email-ciprian.barbu@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1422460889-12144-1-git-send-email-ciprian.barbu@linaro.org> References: <1422460889-12144-1-git-send-email-ciprian.barbu@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH 1/2] example: l2fwd: fix incorrect cpumask used when spawning threads 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.215.53 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 Fix for https://bugs.linaro.org/show_bug.cgi?id=1146 Signed-off-by: Ciprian Barbu --- example/l2fwd/odp_l2fwd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/l2fwd/odp_l2fwd.c b/example/l2fwd/odp_l2fwd.c index 18403da..150de18 100644 --- a/example/l2fwd/odp_l2fwd.c +++ b/example/l2fwd/odp_l2fwd.c @@ -393,7 +393,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 */