[dpdk-dev] [PATCH v1] mempool: dump socket id attribute

Andrew Rybchenko arybchenko at solarflare.com
Fri Sep 11 10:31:31 CEST 2020


On 9/11/20 11:13 AM, Sachin Saxena (OSS) wrote:
> From: Sachin Saxena <sachin.saxena at oss.nxp.com>
> 
> Enhance the dump function to also print socket_id attribute
> passed at creation time.
> 
> Signed-off-by: Sachin Saxena <sachin.saxena at oss.nxp.com>

Please, include maintainers in the recipient list the next time.

Acked-by: Andrew Rybchenko <arybchenko at solarflare.com>

> ---
>  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 7774f0c8d..2d49ecd2b 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);
> 



More information about the dev mailing list