[v1] mempool: dump socket id attribute
Checks
Commit Message
From: Sachin Saxena <sachin.saxena@oss.nxp.com>
Enhance the dump function to also print socket_id attribute
passed at creation time.
Signed-off-by: Sachin Saxena <sachin.saxena@oss.nxp.com>
---
lib/librte_mempool/rte_mempool.c | 1 +
1 file changed, 1 insertion(+)
Comments
On 9/11/20 11:13 AM, Sachin Saxena (OSS) wrote:
> From: Sachin Saxena <sachin.saxena@oss.nxp.com>
>
> Enhance the dump function to also print socket_id attribute
> passed at creation time.
>
> Signed-off-by: Sachin Saxena <sachin.saxena@oss.nxp.com>
Please, include maintainers in the recipient list the next time.
Acked-by: Andrew Rybchenko <arybchenko@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);
>
11/09/2020 10:31, Andrew Rybchenko:
> On 9/11/20 11:13 AM, Sachin Saxena (OSS) wrote:
> > From: Sachin Saxena <sachin.saxena@oss.nxp.com>
> >
> > Enhance the dump function to also print socket_id attribute
> > passed at creation time.
> >
> > Signed-off-by: Sachin Saxena <sachin.saxena@oss.nxp.com>
>
> Acked-by: Andrew Rybchenko <arybchenko@solarflare.com>
Applied, thanks
@@ -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);