mempool: add structure for object trailers
authorOlivier Matz <olivier.matz@6wind.com>
Fri, 19 Jun 2015 16:16:38 +0000 (18:16 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 19 Jun 2015 21:37:08 +0000 (23:37 +0200)
commit97e7e685bfcd37dba04b84f07aaa5a815d32733c
tree11d6b37d39257f287ec1201c590519a0d586f361
parentd2e0ca22f50963b9aad89bdeb1eae5595f365584
mempool: add structure for object trailers

Each object stored in mempools are suffixed by a trailer, storing
a cookie in debug mode which help to detect memory corruptions.

Like for headers, introduce a structure that materializes the content of
this trailer.

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