[dpdk-dev] [PATCH v4 3/9] eal: introduce thread init helper
David Marchand
david.marchand at redhat.com
Tue Jun 30 14:04:24 CEST 2020
On Tue, Jun 30, 2020 at 11:37 AM Olivier Matz <olivier.matz at 6wind.com> wrote:
> >
> > +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
More information about the dev
mailing list