[dpdk-dev] [PATCH v3 06/12] memzone: refactor rte_memzone_reserve() variants

Thomas Monjalon thomas.monjalon at 6wind.com
Thu Jul 9 02:51:27 CEST 2015


2015-07-06 16:51, Zhigang Lu:
> 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().

Ideally, some functions should be merged to avoid some #ifdef RTE_LIBRTE_XEN_DOM0.



More information about the dev mailing list