Re: [PATCH net-next v3] selftests: net: reuseport_bpf_numa: consider cpuless numa node

From: Simon Horman

Date: Mon Aug 10 2026 - 09:36:47 EST


On Fri, Aug 07, 2026 at 08:24:36AM +0800, Feng Tang wrote:
> reuseport_bpf_numa case failed when testing on a platform with CXL
> memory:
>
> #./reuseport_bpf_numa
> ---- IPv4 UDP ----
> send node 0, receive socket 0
> ./reuseport_bpf_numa: failed to pin to node: Invalid argument
>
> The root cause is that the platform has 2 numa nodes: node 0 has
> both cpu and memory, while node 1 is a CXL node which only has
> memory, and caused numa_run_on_node() to fail.
>
> Add sanity check to skip cpuless numa node for the numa binding test.
>
> Signed-off-by: Feng Tang <feng.tang@xxxxxxxxxxxxxxxxx>
> ---
> Changelog:
> since v2:
> * fix spelling issue (Jakub, Sashiko)
> * remove unnecessary 'inline' for is_cpuless_node() (Jakub)
>
> since v1:
> * address comments from Sashiko bot
> https://lore.kernel.org/all/20260730113738.41C901F000E9@xxxxxxxxxxxxxxx/
> * lift the cpuless node check out of send_from_node()

Reviewed-by: Simon Horman <horms@xxxxxxxxxx>