mempool: use sizeof to get size of header and trailer
authorOlivier Matz <olivier.matz@6wind.com>
Wed, 18 May 2016 11:04:25 +0000 (13:04 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 19 May 2016 12:40:12 +0000 (14:40 +0200)
commit26d624002defc8e322f70f4ee0c01d92631ee9f8
tree7648763dbe656ff7ffca8325febc794ee343f86a
parent8dcb12707e4127335c2bd26ddf597d284feba99a
mempool: use sizeof to get size of header and trailer

Since commits d2e0ca22f and 97e7e685b the headers and trailers
of the mempool are defined as a structure. We can get their
size using a sizeof instead of doing a calculation that will
become wrong at the first structure update.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
lib/librte_mempool/rte_mempool.c