From 06210330733a200ace466302a6bae3cd4299ad3d Mon Sep 17 00:00:00 2001 From: Sachin Saxena Date: Fri, 11 Sep 2020 13:43:16 +0530 Subject: [PATCH] mempool: dump socket attribute Enhance the dump function to also print socket_id attribute passed at creation time. Signed-off-by: Sachin Saxena Acked-by: Andrew Rybchenko --- lib/librte_mempool/rte_mempool.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_mempool/rte_mempool.c b/lib/librte_mempool/rte_mempool.c index 7774f0c8da..2d49ecd2b8 100644 --- a/lib/librte_mempool/rte_mempool.c +++ b/lib/librte_mempool/rte_mempool.c @@ -1275,6 +1275,7 @@ rte_mempool_dump(FILE *f, struct rte_mempool *mp) fprintf(f, "mempool <%s>@%p\n", mp->name, mp); fprintf(f, " flags=%x\n", mp->flags); + fprintf(f, " socket_id=%d\n", mp->socket_id); fprintf(f, " pool=%p\n", mp->pool_data); fprintf(f, " iova=0x%" PRIx64 "\n", mp->mz->iova); fprintf(f, " nb_mem_chunks=%u\n", mp->nb_mem_chunks); -- 2.20.1