mem: refactor memzone reserve functions
authorCyril Chemparathy <cchemparathy@ezchip.com>
Thu, 9 Jul 2015 08:25:14 +0000 (16:25 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 13 Jul 2015 14:15:52 +0000 (16:15 +0200)
commit2d65283c259616a5643599ce32d7a62d174ec49e
treef53f27b968bb4e0f00060bd9afe8628449bc6e0c
parentc3ce2ad3548c034e00906e312453909914e6fb1a
mem: refactor memzone reserve functions

The definitions of rte_memzone_reserve_aligned() and
rte_memzone_reserve_bounded() were identical with the exception of the
bound argument passed into rte_memzone_reserve_thread_safe().

This patch removes this replication of code by unifying it into
rte_memzone_reserve_thread_safe(), which is then called by all three
variants of rte_memzone_reserve().

Signed-off-by: Cyril Chemparathy <cchemparathy@ezchip.com>
Signed-off-by: Zhigang Lu <zlu@ezchip.com>
lib/librte_eal/common/eal_common_memzone.c