Some applications need to derive socket-specific EAL configuration from OS CPU IDs before EAL lcore IDs are useful. One example is building socket memory policy from the CPUs available to the process.
Existing public socket APIs do not cover this directly. rte_socket_id() reports the calling thread socket, while rte_lcore_to_socket_id() requires an EAL lcore ID and uses EAL lcore configuration. Add rte_cpu_socket_id() as a public API for mapping an OS logical CPU ID to the NUMA socket containing that CPU. The implementation reuses the existing per-OS EAL lookup internally, while keeping the eal_cpu_socket_id() helper private to EAL. 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 | 7 +++++++ lib/eal/include/rte_lcore.h | 14 ++++++++++++++ 4 files changed, 25 insertions(+) -- 2.35.6

