Thread (133 messages) 133 messages, 11 authors, 2022-12-16

Re: [dpdk-dev] [PATCH v4 3/9] eal: introduce thread init helper

From: David Marchand <hidden>
Date: 2020-06-30 12:04:44

On Tue, Jun 30, 2020 at 11:37 AM Olivier Matz [off-list ref] wrote:
quoted
+void
+rte_thread_init(unsigned int lcore_id, rte_cpuset_t *cpuset)
+{
+     /* set the lcore ID in per-lcore memory area */
+     RTE_PER_LCORE(_lcore_id) = lcore_id;
+
+     /* acquire system unique id  */
+     rte_gettid();
If I understand properly, rte_gettid() is now also called for control
thread. I don't think this behavior change can break anything, but it may
be good to highlight it in the commit log.
Control thread could not use recursive locks before, because this
rte_gettid() was missing.
Worth mentioning yes.


-- 
David Marchand
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help