Applications may need to build socket-specific EAL policy before they have
an EAL lcore ID for each relevant CPU. Existing public APIs expose the
current thread socket, socket IDs by EAL socket index, or sockets for EAL
lcore IDs, but do not directly map an OS logical CPU ID to its NUMA socket.

Add experimental rte_cpu_socket_id() for that lookup while keeping the
existing eal_cpu_socket_id() helper private to EAL.

v3:
- Return SOCKET_ID_ANY for invalid CPU IDs and document that behavior.

v2:
- Mark rte_cpu_socket_id() experimental in the declaration, export macro,
  release note and commit message.

Randy L Tice (1):
  eal: add API to get CPU socket ID

 .mailmap                               |  1 +
 doc/guides/rel_notes/release_26_11.rst |  3 +++
 lib/eal/common/eal_common_lcore.c      | 11 +++++++++++
 lib/eal/include/rte_lcore.h            | 19 +++++++++++++++++++
 4 files changed, 34 insertions(+)

-- 
2.35.6

Reply via email to