mempool: distinguish cache and pool debug counters
authorJoyce Kong <joyce.kong@arm.com>
Tue, 27 Apr 2021 16:01:40 +0000 (11:01 -0500)
committerDavid Marchand <david.marchand@redhat.com>
Tue, 4 May 2021 07:44:55 +0000 (09:44 +0200)
commitcee151b41b74873bb4bbf6a86a96b37f829fc237
treed8a46114c188c1edc19159b566f76c3981eb3413
parent56487040656c60c3a9268716d0ccd1f33ce1276f
mempool: distinguish cache and pool debug counters

If cache is enabled, objects will be retrieved/put from/to cache,
subsequently from/to the common pool. Now the debug stats calculate
the objects retrieved/put from/to cache and pool together, it is
better to distinguish them.

Signed-off-by: Joyce Kong <joyce.kong@arm.com>
Signed-off-by: Dharmik Thakkar <dharmik.thakkar@arm.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
lib/mempool/rte_mempool.c
lib/mempool/rte_mempool.h