X-Git-Url: http://git.droids-corp.org/?p=dpdk.git;a=blobdiff_plain;f=app%2Ftest%2Ftest_mempool.c;h=238ff52058a1687811f09b6fedd105c989990baf;hp=63c61f35bf13e0df95516e3074dd94f3893b413b;hb=a0fd91cefcc054b770dec6d8fb60db0d3145c45a;hpb=43ea4004944404388c033055b130b53e8ba03806 diff --git a/app/test/test_mempool.c b/app/test/test_mempool.c index 63c61f35bf..238ff52058 100644 --- a/app/test/test_mempool.c +++ b/app/test/test_mempool.c @@ -231,7 +231,7 @@ test_mempool_basic(struct rte_mempool *mp, int use_external_cache) printf("get object count\n"); /* We have to count the extra caches, one in this case. */ offset = use_external_cache ? 1 * cache->len : 0; - if (rte_mempool_count(mp) + offset != MEMPOOL_SIZE - 1) + if (rte_mempool_avail_count(mp) + offset != MEMPOOL_SIZE - 1) GOTO_ERR(ret, out); printf("get private data\n"); @@ -497,7 +497,7 @@ test_mempool_basic_ex(struct rte_mempool *mp) return ret; } printf("test_mempool_basic_ex now mempool (%s) has %u free entries\n", - mp->name, rte_mempool_free_count(mp)); + mp->name, rte_mempool_in_use_count(mp)); if (rte_mempool_full(mp) != 1) { printf("test_mempool_basic_ex the mempool should be full\n"); goto fail_mp_basic_ex;