Re: [dpdk-dev] [PATCH v4 2/9] eal: fix multiple definition of per lcore thread id

2020-06-30 Thread Olivier Matz
On Fri, Jun 26, 2020 at 04:47:29PM +0200, David Marchand wrote: > Because of the inline accessor + static declaration in rte_gettid(), > we end up with multiple symbols for RTE_PER_LCORE(_thread_id). > Each compilation unit will pay a cost when accessing this information > for the first time. > >

[dpdk-dev] [PATCH v4 2/9] eal: fix multiple definition of per lcore thread id

2020-06-26 Thread David Marchand
Because of the inline accessor + static declaration in rte_gettid(), we end up with multiple symbols for RTE_PER_LCORE(_thread_id). Each compilation unit will pay a cost when accessing this information for the first time. $ nm build/app/dpdk-testpmd | grep per_lcore__thread_id 0054 d p