aboutsummaryrefslogtreecommitdiff
path: root/example/l2fwd
diff options
context:
space:
mode:
authorSantosh Shukla <santosh.shukla@linaro.org>2014-08-04 11:07:18 +0530
committerMaxim Uvarov <maxim.uvarov@linaro.org>2014-08-06 23:48:05 +0400
commit3a00de5701c80e0feedb3664ec572cb7ac86fb9e (patch)
tree582b0e6d799f3b90300e641dc27912fe42caf687 /example/l2fwd
parent57611a5057abfa20842593a049edc7ad9386e468 (diff)
linux-generic: Fix incorrect thread_tbl index in apps
few of odp example and test application passing incorrect thread_tbl index entry (thread_tbl base addr) to odp_linux_pthread_create(thread_tbl^^, 1, ..) api. This patch a common fix for those odp application. Signed-off-by: Santosh Shukla <santosh.shukla@linaro.org>
Diffstat (limited to 'example/l2fwd')
-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 e331ff262..f89ea7a1a 100644
--- a/example/l2fwd/odp_l2fwd.c
+++ b/example/l2fwd/odp_l2fwd.c
@@ -411,7 +411,7 @@ int main(int argc, char *argv[])
thr_run_func = pktio_ifburst_thread;
else /* APPL_MODE_PKT_QUEUE */
thr_run_func = pktio_queue_thread;
- odp_linux_pthread_create(thread_tbl, 1, core, thr_run_func,
+ odp_linux_pthread_create(&thread_tbl[i], 1, core, thr_run_func,
&gbl_args->thread[i]);
}