From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5355B47101 for ; Fri, 26 Dec 2025 09:17:58 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4AF5F40262; Fri, 26 Dec 2025 09:17:58 +0100 (CET) Received: from mailgw1.hygon.cn (unknown [101.204.27.37]) by mails.dpdk.org (Postfix) with ESMTP id 6BAE640262; Fri, 26 Dec 2025 09:17:56 +0100 (CET) Received: from maildlp2.hygon.cn (unknown [127.0.0.1]) by mailgw1.hygon.cn (Postfix) with ESMTP id 4dcz4x45rRzVcB7; Fri, 26 Dec 2025 16:17:53 +0800 (CST) Received: from maildlp2.hygon.cn (unknown [172.23.18.61]) by mailgw1.hygon.cn (Postfix) with ESMTP id 4dcz4w5NxkzVcB7; Fri, 26 Dec 2025 16:17:52 +0800 (CST) Received: from cncheex04.Hygon.cn (unknown [172.23.18.114]) by maildlp2.hygon.cn (Postfix) with ESMTPS id 8DA843008F44; Fri, 26 Dec 2025 16:13:19 +0800 (CST) Received: from kk5.hygon.cn (172.19.22.47) by cncheex04.Hygon.cn (172.23.18.114) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.36; Fri, 26 Dec 2025 16:17:52 +0800 From: Liangxing Wang To: CC: Liangxing Wang , Subject: [PATCH] examples/l3fwd: extend NUMA nodes limit beyond 8 Date: Fri, 26 Dec 2025 08:17:19 +0000 Message-ID: <20251226081719.1120313-1-wangliangxing@hygon.cn> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.19.22.47] X-ClientProxiedBy: cncheex06.Hygon.cn (172.23.18.116) To cncheex04.Hygon.cn (172.23.18.114) X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org For platforms with more than 8 NUMA nodes, the l3fwd example fails when using cores on NUMA node 8 or above. Use RTE_MAX_NUMA_NODES instead of 8 to extend NUMA nodes limit. Cc: stable@dpdk.org Signed-off-by: Liangxing Wang --- examples/l3fwd/l3fwd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/l3fwd/l3fwd.h b/examples/l3fwd/l3fwd.h index 471e3b488f..ca9d0d2dd0 100644 --- a/examples/l3fwd/l3fwd.h +++ b/examples/l3fwd/l3fwd.h @@ -33,7 +33,7 @@ #define VECTOR_SIZE_DEFAULT MAX_PKT_BURST #define VECTOR_TMO_NS_DEFAULT 1E6 /* 1ms */ -#define NB_SOCKETS 8 +#define NB_SOCKETS RTE_MAX_NUMA_NODES /* Configure how many packets ahead to prefetch, when reading packets */ #define PREFETCH_OFFSET 3 -- 2.43.0