]> git.droids-corp.org - dpdk.git/commit
eal: get/set thread affinity per thread identifier
authorTyler Retzlaff <roretzla@linux.microsoft.com>
Thu, 12 May 2022 13:14:29 +0000 (06:14 -0700)
committerDavid Marchand <david.marchand@redhat.com>
Thu, 19 May 2022 14:45:07 +0000 (16:45 +0200)
commitb70a9b7886254253ac1916d946029464fffd6e05
tree0e7e85576e34f6c87a59c8ce0ab4b17939d28c10
parent56539289b8719213008d9309dcdc4888fa342410
eal: get/set thread affinity per thread identifier

Implement functions for getting/setting thread affinity.
Threads can be pinned to specific cores by setting their
affinity attribute.

Windows error codes are translated to errno-style error codes.
The possible return values are chosen so that we have as
much semantic compatibility between platforms as possible.

note: convert_cpuset_to_affinity has a limitation that all cpus of
the set belong to the same processor group.

Signed-off-by: Narcisa Vasile <navasile@linux.microsoft.com>
Signed-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
Acked-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
lib/eal/include/rte_thread.h
lib/eal/unix/rte_thread.c
lib/eal/version.map
lib/eal/windows/eal_lcore.c
lib/eal/windows/eal_windows.h
lib/eal/windows/include/rte_os.h
lib/eal/windows/rte_thread.c