diff mbox

[1/2] example: l2fwd: fix incorrect cpumask used when spawning threads

Message ID 1422460889-12144-2-git-send-email-ciprian.barbu@linaro.org
State Accepted
Commit 7d0425f344a1f3b18de596c0e0ffe0bdc6c5273e
Headers show

Commit Message

Ciprian Barbu Jan. 28, 2015, 4:01 p.m. UTC
Fix for https://bugs.linaro.org/show_bug.cgi?id=1146

Signed-off-by: Ciprian Barbu <ciprian.barbu@linaro.org>
---
 example/l2fwd/odp_l2fwd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Maxim Uvarov Jan. 30, 2015, 4:45 p.m. UTC | #1
Merged!

Maxim.

On 01/28/2015 07:01 PM, Ciprian Barbu wrote:
> Fix for https://bugs.linaro.org/show_bug.cgi?id=1146
>
> Signed-off-by: Ciprian Barbu <ciprian.barbu@linaro.org>
> ---
>   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 */
diff mbox

Patch

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 */