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.