eal: store control thread CPU affinity in TLS
authorJerin Jacob <jerinj@marvell.com>
Wed, 5 Feb 2020 10:24:15 +0000 (15:54 +0530)
committerDavid Marchand <david.marchand@redhat.com>
Tue, 24 Mar 2020 12:44:41 +0000 (13:44 +0100)
commita7f895740caa04ed3674ad5b054268d862bed83f
tree5a40105488293bedb64b2bfe459eaa4095036f8f
parent83bc8bb1a8ec5e57515778216351fa0cdef9599a
eal: store control thread CPU affinity in TLS

_cpuset TLS variable stores the CPU affinity of eal thread.
Populate the _cpuset TLS variable for control thread to

1) Make rte_thread_get_affinity() and eal_thread_dump_affinity
functional with control thread.
2) Quick access to cpu affinity.

Signed-off-by: Jerin Jacob <jerinj@marvell.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
lib/librte_eal/common/eal_common_thread.c