All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] eal: add CPU socket lookup API
@ 2026-09-14 19:28 Randy L Tice
  2026-09-14 19:28 ` [PATCH 1/1] eal: add API to get CPU socket ID Randy L Tice
  0 siblings, 1 reply; 9+ messages in thread
From: Randy L Tice @ 2026-09-14 19:28 UTC (permalink / raw)
  To: dev; +Cc: thomas, Randy L Tice

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-09-18 16:19 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-14 19:28 [PATCH 0/1] eal: add CPU socket lookup API Randy L Tice
2026-09-14 19:28 ` [PATCH 1/1] eal: add API to get CPU socket ID Randy L Tice
2026-09-14 21:19   ` Stephen Hemminger
2026-09-15 15:05   ` [PATCH v2 0/1] eal: add CPU socket lookup API Randy L Tice
2026-09-15 15:05     ` [PATCH v2 1/1] eal: add API to get CPU socket ID Randy L Tice
2026-09-15 15:09     ` [PATCH v2 0/1] eal: add CPU socket lookup API Bruce Richardson
2026-09-16 14:55     ` [PATCH v3 " Randy L Tice
2026-09-16 14:55       ` [PATCH v3 1/1] eal: add API to get CPU socket ID Randy L Tice
2026-09-18 16:19         ` Stephen Hemminger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.