From 6e489312eed9a1ab22893a9ff29f3c5dddfe54a9 Mon Sep 17 00:00:00 2001 From: Petri Savolainen Date: Thu, 7 May 2015 14:34:16 +0300 Subject: example: classifier: remove extra local init Worker threads are created with odph_linux_pthread_create() which calls odp_local_init() before entering the function. Signed-off-by: Petri Savolainen Reviewed-by: Balasubramanian Manoharan Signed-off-by: Mike Holmes --- example/classifier/odp_classifier.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'example/classifier') diff --git a/example/classifier/odp_classifier.c b/example/classifier/odp_classifier.c index 3cc6738..48fc1ab 100644 --- a/example/classifier/odp_classifier.c +++ b/example/classifier/odp_classifier.c @@ -249,13 +249,6 @@ static void *pktio_receive_thread(void *arg) appl_args_t *appl = (appl_args_t *)arg; global_statistics *stats; - - /* Init this thread */ - if (odp_init_local()) { - EXAMPLE_ERR("ODP thread local init failed.\n"); - exit(EXIT_FAILURE); - } - /* Loop packets */ for (;;) { odp_pktio_t pktio_tmp; -- cgit v1.2.3