[PATCH v3 2/2] app: extend NUMA nodes limit
Liangxing Wang
wangliangxing at hygon.cn
Wed Feb 25 09:05:31 CET 2026
Use RTE_MAX_NUMA_NODES instead of hardcoded 2 to extend NUMA nodes
limit for pmd_perf_autotest.
Remove unused NB_SOCKETS macro for graph app.
Cc: stable at dpdk.org
Signed-off-by: Liangxing Wang <wangliangxing at hygon.cn>
---
app/graph/ethdev_rx_priv.h | 1 -
app/test/test_pmd_perf.c | 2 +-
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/app/graph/ethdev_rx_priv.h b/app/graph/ethdev_rx_priv.h
index a76ebacc0c..8388cfbd8f 100644
--- a/app/graph/ethdev_rx_priv.h
+++ b/app/graph/ethdev_rx_priv.h
@@ -12,7 +12,6 @@
#define MAX_RX_QUEUE_PER_PORT 128
#define MAX_JUMBO_PKT_LEN 9600
-#define NB_SOCKETS 8
struct __rte_cache_aligned lcore_params {
uint16_t port_id;
diff --git a/app/test/test_pmd_perf.c b/app/test/test_pmd_perf.c
index 995b0a6f20..a547a33a1c 100644
--- a/app/test/test_pmd_perf.c
+++ b/app/test/test_pmd_perf.c
@@ -15,7 +15,7 @@
#include "test.h"
#define NB_ETHPORTS_USED (1)
-#define NB_SOCKETS (2)
+#define NB_SOCKETS RTE_MAX_NUMA_NODES
#define MEMPOOL_CACHE_SIZE 250
#define MAX_PKT_BURST (32)
#define RX_DESC_DEFAULT (1024)
--
2.43.0
More information about the stable
mailing list