X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=vnet%2Fvnet%2Fdevices%2Fdpdk%2Fcli.c;h=fbd1637e654ff963c85b493178d2ec4934cd1210;hb=f530a5526a1f501462ff4247a5bb38e80c13678d;hp=2683030658acb04e19d2149239a50759a8e51f31;hpb=6398397125e1d37a9f9463351e537eb4012baba7;p=vpp.git diff --git a/vnet/vnet/devices/dpdk/cli.c b/vnet/vnet/devices/dpdk/cli.c index 2683030658a..fbd1637e654 100644 --- a/vnet/vnet/devices/dpdk/cli.c +++ b/vnet/vnet/devices/dpdk/cli.c @@ -169,13 +169,8 @@ show_dpdk_buffer (vlib_main_t * vm, unformat_input_t * input, rmp = vm->buffer_main->pktmbuf_pools[i]; if (rmp) { -#if RTE_VERSION >= RTE_VERSION_NUM(16, 7, 0, 0) unsigned count = rte_mempool_avail_count (rmp); unsigned free_count = rte_mempool_in_use_count (rmp); -#else - unsigned count = rte_mempool_count (rmp); - unsigned free_count = rte_mempool_free_count (rmp); -#endif vlib_cli_output (vm, "name=\"%s\" available = %7d allocated = %7d total = %7d\n",