]> git.droids-corp.org - dpdk.git/blobdiff - lib/eal/linux/eal_thread.c
eal: reset lcore task callback and argument
[dpdk.git] / lib / eal / linux / eal_thread.c
index 83c2034b93d5c9722e99bd8151d504fa8d941ab7..8f3c0dafd612a0c729f8a60349e8fdc77ea3006a 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