mempool: make stats macro generic
authorDharmik Thakkar <dharmik.thakkar@arm.com>
Tue, 27 Apr 2021 16:01:39 +0000 (11:01 -0500)
committerDavid Marchand <david.marchand@redhat.com>
Tue, 4 May 2021 07:34:28 +0000 (09:34 +0200)
commit56487040656c60c3a9268716d0ccd1f33ce1276f
tree449adec68ac6924bbe29492801b5e90af69ebf05
parent1abb185d6cd41f83cd91eb6b1816c31e4bce887a
mempool: make stats macro generic

Make __MEMPOOL_STAT_ADD macro more generic and delete
__MEMPOOL_CONTIG_BLOCKS_STAT_ADD macro.

Suggested-by: Olivier Matz <olivier.matz@6wind.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.h