git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mempool: rename functions with confusing names
[dpdk.git]
/
examples
/
multi_process
/
l2fwd_fork
/
main.c
diff --git
a/examples/multi_process/l2fwd_fork/main.c
b/examples/multi_process/l2fwd_fork/main.c
index
368b309
..
2d951d9
100644
(file)
--- a/
examples/multi_process/l2fwd_fork/main.c
+++ b/
examples/multi_process/l2fwd_fork/main.c
@@
-442,7
+442,8
@@
reset_slave_all_ports(unsigned slaveid)
pool = rte_mempool_lookup(buf_name);
if (pool)
printf("Port %d mempool free object is %u(%u)\n", slave->port[i],
pool = rte_mempool_lookup(buf_name);
if (pool)
printf("Port %d mempool free object is %u(%u)\n", slave->port[i],
- rte_mempool_count(pool), (unsigned)NB_MBUF);
+ rte_mempool_avail_count(pool),
+ (unsigned int)NB_MBUF);
else
printf("Can't find mempool %s\n", buf_name);
else
printf("Can't find mempool %s\n", buf_name);