[PATCH 172/227] app/proc-info: use NUMA node terminology

Chengwen Feng chengwen.feng at linux.dev
Tue Nov 3 15:52:10 CET 2026


From: Chengwen Feng <fengchengwen at huawei.com>

Rename socket_id parameters, local variables and comments to the
NUMA node terminology, and switch calls to the NUMA-named APIs.

Signed-off-by: Chengwen Feng <fengchengwen at huawei.com>
---
 app/proc-info/main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/proc-info/main.c b/app/proc-info/main.c
index 1e5eee6787..8e8cc923ce 100644
--- a/app/proc-info/main.c
+++ b/app/proc-info/main.c
@@ -1034,7 +1034,7 @@ show_port(void)
 
 		printf("\t  -- driver %s device %s socket %d\n",
 		       dev_info.driver_name, rte_dev_name(dev_info.device),
-		       rte_eth_dev_socket_id(i));
+		       rte_eth_dev_numa_id(i));
 
 		ret = rte_eth_dev_owner_get(i, &owner);
 		if (ret == 0 && owner.id != RTE_ETH_DEV_NO_OWNER)
@@ -1631,7 +1631,7 @@ show_mempool(char *name)
 				"\t  -- No IOVA config (%c)\n"
 				"\t  -- Not used for IO (%c)\n",
 				ptr->name,
-				ptr->socket_id,
+				ptr->numa_id,
 				(flags & RTE_MEMPOOL_F_NO_SPREAD) ? 'y' : 'n',
 				(flags & RTE_MEMPOOL_F_NO_CACHE_ALIGN) ? 'y' : 'n',
 				(flags & RTE_MEMPOOL_F_SP_PUT) ? 'y' : 'n',
-- 
2.55.0



More information about the dev mailing list