X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;ds=sidebyside;f=app%2Ftest%2Ftest_table.c;h=676dab23dc3171a2b78c1d911d8c06f74775949f;hb=7a7122edf1c8d63e516d1b2c2eff6fa9b54e0f82;hp=33e2efccc65801d08439b601554611ca8a9afd85;hpb=942405f9e2f2c22aa817be374ccfe939a72df2ce;p=dpdk.git diff --git a/app/test/test_table.c b/app/test/test_table.c index 33e2efccc6..676dab23dc 100644 --- a/app/test/test_table.c +++ b/app/test/test_table.c @@ -31,9 +31,6 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ - -#ifdef RTE_LIBRTE_TABLE - #include #include #include @@ -92,15 +89,10 @@ app_init_mbuf_pools(void) printf("Getting/Creating the mempool ...\n"); pool = rte_mempool_lookup("mempool"); if (!pool) { - pool = rte_mempool_create( + pool = rte_pktmbuf_pool_create( "mempool", POOL_SIZE, - POOL_BUFFER_SIZE, - POOL_CACHE_SIZE, - sizeof(struct rte_pktmbuf_pool_private), - rte_pktmbuf_pool_init, NULL, - rte_pktmbuf_init, NULL, - 0, + POOL_CACHE_SIZE, 0, POOL_BUFFER_SIZE, 0); if (pool == NULL) rte_panic("Cannot create mbuf pool\n"); @@ -200,7 +192,7 @@ test_table(void) #ifdef RTE_LIBRTE_ACL printf("\n\n\n\n************ACL tests************\n"); - if (test_table_ACL() < 0) + if (test_table_acl() < 0) return -1; #endif @@ -212,4 +204,3 @@ static struct test_command table_cmd = { .callback = test_table, }; REGISTER_TEST_COMMAND(table_cmd); -#endif