mempool: add iterator function
authorStephen Hemminger <stephen@networkplumber.org>
Fri, 2 May 2014 23:42:54 +0000 (16:42 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 16 May 2014 14:02:55 +0000 (16:02 +0200)
commit356cb732d5381140f42ef8b55492339579854986
tree40f49800c63357c0d24be1c458dfac2d47ffecbc
parent58f8a1d2e30e0ee6a83e1cdb2b73990b55e5f06c
mempool: add iterator function

Add function to iterate over mempool.
Useful for diagnostic code that wants to look at mempool usage patterns.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
lib/librte_mempool/rte_mempool.c
lib/librte_mempool/rte_mempool.h