From: Pavan Nikhilesh Date: Mon, 29 Jan 2018 08:10:47 +0000 (+0530) Subject: app/testpmd: add log for preferred mempool ops X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=0e79856795144d0622d5289f49e53ccb0751a9dd;p=dpdk.git app/testpmd: add log for preferred mempool ops This patch adds the debug message to print the best selected pktmbuf mempool ops name. Signed-off-by: Pavan Nikhilesh Signed-off-by: Hemant Agrawal Reviewed-by: Olivier Matz Acked-by: Santosh Shukla --- diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index 5dc8ccac50..d8ac43268d 100644 --- a/app/test-pmd/testpmd.c +++ b/app/test-pmd/testpmd.c @@ -38,6 +38,7 @@ #include #include #include +#include #include #include #include @@ -499,6 +500,8 @@ mbuf_pool_create(uint16_t mbuf_seg_size, unsigned nb_mbuf, rte_mempool_obj_iter(rte_mp, rte_pktmbuf_init, NULL); } else { /* wrapper to rte_mempool_create() */ + TESTPMD_LOG(INFO, "preferred mempool ops selected: %s\n", + rte_mbuf_best_mempool_ops()); rte_mp = rte_pktmbuf_pool_create(pool_name, nb_mbuf, mb_mempool_cache, 0, mbuf_seg_size, socket_id); }