mempool: fix trailer address
authorYuichi Nakai <xoxyuxu@gmail.com>
Wed, 22 Jul 2015 13:57:00 +0000 (22:57 +0900)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sun, 26 Jul 2015 13:24:18 +0000 (15:24 +0200)
commite01cda43a3551d8680787ed9db38c7eb38637c7a
treeef7bde700393244e34ca2cdfa84da0b2f443cc96
parent48cc0baf8ac69aded9f96d291ff3ad75940c4a8e
mempool: fix trailer address

__mempool_get_trailer() calculated header's address.
The address of trailer should set after element area.
This patch fixes this calculating.

Fixes: 97e7e685bfcd ("mempool: add structure for object trailers")

Signed-off-by: Yuichi Nakai <xoxyuxu@gmail.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
lib/librte_mempool/rte_mempool.h