Hi.

In DPDK 19.11, the lcore_config struct of <rte_lcore.h> is made private, 
and with it the possibility to look up the thread id of the lcore worker 
threads disappears.

One use case is an application with a monitoring function (on some 
control plane thread), which uses the thread ids to make sure the worker 
threads gets the CPU runtime they should, and thus is able to detect 
stalls.

Is there some other way of finding out the thread_id of a lcore worker 
thread? All I can think of are hacks like using a temporary service 
function for service cores, in combination with requiring launched 
application threads also to store their thread id in some global 
structure (index by lcore_id).

Is there some cleaner way? If not, would adding something like a 
rte_lcore_thread_id() function make sense?

Regards,
     Mattias

Reply via email to