eal: reset lcore task callback and argument
[dpdk.git] / lib / eal / linux / eal_thread.c
index 83c2034..8f3c0da 100644 (file)
@@ -126,6 +126,8 @@ eal_thread_loop(__rte_unused void *arg)
                fct_arg = lcore_config[lcore_id].arg;
                ret = lcore_config[lcore_id].f(fct_arg);
                lcore_config[lcore_id].ret = ret;
+               lcore_config[lcore_id].f = NULL;
+               lcore_config[lcore_id].arg = NULL;
                rte_wmb();
 
                /* when a service core returns, it should go directly to WAIT