Enhance the dump function to also print the ops index
and associated mempool ops name
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Acked-by: Andrew Rybchenko <arybchenko@solarflare.com>
        unsigned lcore_id;
 #endif
        struct rte_mempool_memhdr *memhdr;
+       struct rte_mempool_ops *ops;
        unsigned common_count;
        unsigned cache_count;
        size_t mem_len = 0;
 
        fprintf(f, "  private_data_size=%"PRIu32"\n", mp->private_data_size);
 
+       fprintf(f, "  ops_index=%d\n", mp->ops_index);
+       ops = rte_mempool_get_ops(mp->ops_index);
+       fprintf(f, "  ops_name: <%s>\n", (ops != NULL) ? ops->name : "NA");
+
        STAILQ_FOREACH(memhdr, &mp->mem_list, next)
                mem_len += memhdr->len;
        if (mem_len != 0) {