09/10/2021 09:41, Narcisa Ana Maria Vasile:
From: Narcisa Vasile <redacted>
Implement thread attributes for:
* thread affinity
* thread priority
Implement functions for managing thread attributes.
Priority is represented through an enum that allows for two levels:
- RTE_THREAD_PRIORITY_NORMAL
- RTE_THREAD_PRIORITY_REALTIME_CRITICAL
It doesn't say how do you translate these priorites in POSIX and win32.
Affinity is described by the rte_cpuset_t type.
An rte_thread_attr_t object can be set to the default values
by calling rte_thread_attr_init().
Signed-off-by: Narcisa Vasile <redacted>
[...]
lib/eal/common/rte_thread.c | 46 ++++++++++++++++++
lib/eal/windows/rte_thread.c | 44 +++++++++++++++++
These 2 files look like code duplication.