[PATCH v3 1/1] eal: add API to get CPU socket ID

Stephen Hemminger stephen at networkplumber.org
Fri Sep 18 18:19:29 CEST 2026


On Wed, 16 Sep 2026 10:55:16 -0400
Randy L Tice <rtice at cisco.com> wrote:

> Add experimental rte_cpu_socket_id() so applications can map an OS
> logical CPU ID to its NUMA socket without requiring an EAL lcore ID.
> 
> Existing public socket APIs depend on EAL lcore configuration or the
> calling thread's EAL state. They do not cover code that needs to look
> up topology by OS CPU ID, such as building socket memory policy.
> 
> Reuse the existing per-OS EAL CPU socket lookup internally, while
> keeping the eal_cpu_socket_id() helper private to EAL.
> 
> Signed-off-by: Randy L Tice <rtice at cisco.com>
> ---

Applied to next-net. Put the release note in the New Features section


More information about the dev mailing list