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

2020-06-14 Thread Kinsella, Ray
On 10/06/2020 15:45, 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. > > $ nm build/app/dpdk-

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

2020-06-10 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