X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;ds=sidebyside;f=app%2Ftest%2Ftest_mempool.c;h=b9880b32b8f95ffa330595488044db1265ecf37e;hb=ca41215c051a1f4f6f96e947ccb671dab3509cbf;hp=3b21cf76789ebe95a7054b2fa6292a519c87bfe2;hpb=cdc34f8721610a0807377a014cb5b49f43b3bf5e;p=dpdk.git diff --git a/app/test/test_mempool.c b/app/test/test_mempool.c index 3b21cf7678..b9880b32b8 100644 --- a/app/test/test_mempool.c +++ b/app/test/test_mempool.c @@ -52,7 +52,6 @@ #include #include #include -#include #include #include #include @@ -501,6 +500,12 @@ test_mempool_xmem_misc(void) return 0; } +static void +walk_cb(struct rte_mempool *mp, void *userdata __rte_unused) +{ + printf("\t%s\n", mp->name); +} + static int test_mempool(void) { @@ -562,6 +567,9 @@ test_mempool(void) goto err; } + printf("Walk into mempools:\n"); + rte_mempool_walk(walk_cb, NULL); + rte_mempool_list_dump(stdout); /* basic tests without cache */