]> git.droids-corp.org - dpdk.git/blobdiff - app/test/test_mempool_perf.c
tile: fix build
[dpdk.git] / app / test / test_mempool_perf.c
index b80a1dd36eb95acc5a1218aa1628ec6954bc81c0..ebf1721ac32b932b14997d3bb63087b66f5c5846 100644 (file)
@@ -52,7 +52,6 @@
 #include <rte_lcore.h>
 #include <rte_atomic.h>
 #include <rte_branch_prediction.h>
-#include <rte_ring.h>
 #include <rte_mempool.h>
 #include <rte_spinlock.h>
 #include <rte_malloc.h>
@@ -240,7 +239,7 @@ launch_cores(unsigned cores)
                   external_cache_size : (unsigned) mp->cache_size,
               cores, n_get_bulk, n_put_bulk, n_keep);
 
-       if (rte_mempool_count(mp) != MEMPOOL_SIZE) {
+       if (rte_mempool_avail_count(mp) != MEMPOOL_SIZE) {
                printf("mempool is not full\n");
                return -1;
        }
@@ -381,8 +380,4 @@ test_mempool_perf(void)
        return 0;
 }
 
-static struct test_command mempool_perf_cmd = {
-       .command = "mempool_perf_autotest",
-       .callback = test_mempool_perf,
-};
-REGISTER_TEST_COMMAND(mempool_perf_cmd);
+REGISTER_TEST_COMMAND(mempool_perf_autotest, test_mempool_perf);