mempool: allow config override on element alignment
authorCyril Chemparathy <cchemparathy@ezchip.com>
Thu, 9 Jul 2015 08:25:16 +0000 (16:25 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 13 Jul 2015 14:15:52 +0000 (16:15 +0200)
commit9f34c5a7abbd3e091ec4f2c43adfb0bf613b833e
tree37396dddff2eb95051d57f751d2813e682813282
parentb3dfffd962ecd7a1d8700193b4b3305dc85e7ae4
mempool: allow config override on element alignment

On TILE-Gx and TILE-Mx platforms, the buffers fed into the hardware
buffer manager require a 128-byte alignment.  With this change, we
allow configuration based override of the element alignment, and
default to RTE_CACHE_LINE_SIZE if left unspecified.

Signed-off-by: Cyril Chemparathy <cchemparathy@ezchip.com>
Signed-off-by: Zhigang Lu <zlu@ezchip.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_mempool/rte_mempool.c
lib/librte_mempool/rte_mempool.h