On 05/08/15 10:07, Petri Savolainen wrote:
--- a/helper/linux.c
+++ b/helper/linux.c
@@ -60,7 +60,7 @@ static void *odp_run_start_routine(void *arg)
        odp_start_args_t *start_args = arg;
/* ODP thread local init */
-       if (odp_init_local()) {
+       if (odp_init_local(ODP_THREAD_WORKER)) {
                ODP_ERR("Local init failed\n");
                return NULL;
        }
@@ -200,7 +200,7 @@ int odph_linux_process_fork_n(odph_linux_process_t 
*proc_tbl,
                        return -2;
                }
- if (odp_init_local()) {
+               if (odp_init_local(ODP_THREAD_WORKER)) {
                        ODP_ERR("Local init failed\n");
                        return -2;
                }

So you want to linux helper to fork only workers?
odph_linux_process_fork_n is used only in ./test/performance/odp_scheduling.c where probably it can
be control.

But I also don't understand what has to be in implementation of that worker/control. The only idea I have is to not init pktio and scheduler for control thread. Is that that main propose?

Thanks,
Maxim.
_______________________________________________
lng-odp mailing list
[email protected]
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to