aboutsummaryrefslogtreecommitdiff
path: root/example/l2fwd/odp_l2fwd.c
diff options
context:
space:
mode:
authorCiprian Barbu <ciprian.barbu@linaro.org>2015-01-28 18:01:28 +0200
committerMaxim Uvarov <maxim.uvarov@linaro.org>2015-01-30 19:38:44 +0300
commit7d0425f344a1f3b18de596c0e0ffe0bdc6c5273e (patch)
treef5b131f8d62edb0d2db92c151deb39e9425edfa4 /example/l2fwd/odp_l2fwd.c
parentb558ce58fd992a79d17035ce0dfdf513b7e697c1 (diff)
example: l2fwd: fix incorrect cpumask used when spawning threads
Fix for https://bugs.linaro.org/show_bug.cgi?id=1146 Signed-off-by: Ciprian Barbu <ciprian.barbu@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'example/l2fwd/odp_l2fwd.c')
-rw-r--r--example/l2fwd/odp_l2fwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/l2fwd/odp_l2fwd.c b/example/l2fwd/odp_l2fwd.c
index e40c4902f..5c73d5133 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 */