Thread (9 messages) flat view 9 messages, 3 authors, 1d ago
WARM1d

Revision v1 of 3 in this series.

Revisions (3)
  1. v1 current
  2. v2 [diff vs current]
  3. v3 [diff vs current]

[PATCH 0/1] eal: add CPU socket lookup API

From: Randy L Tice <hidden>
Date: 2026-09-14 19:28:18

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help