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

Simon Horman <[email protected]>
Newsgroups org.kernel.vger.linux-kselftest,org.kernel.vger.bpf,org.kernel.vger.linux-kernel,org.kernel.vger.netdev
Message-ID <[email protected]>
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 <[email protected]>
> ---
> 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/[email protected]/
>     * lift the cpuless node check out of send_from_node() 

Reviewed-by: Simon Horman <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.