mem: revert reversed allocation
authorAnatoly Burakov <anatoly.burakov@intel.com>
Tue, 24 Jul 2018 12:21:40 +0000 (13:21 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 26 Jul 2018 09:15:52 +0000 (11:15 +0200)
commit7350d1be051a1c8fc140e116755c3c6609e8de37
treeed310c87dae3d4f2526d836a44472c258a6816a9
parent3cc605bec634e02ec4e6d60c2135392127e53eae
mem: revert reversed allocation

A few regressions with virtio/vhost have been discovered, due to the
strong dependency of virtio/vhost on the underlying memory layout.
Specifically, virtio/vhost share all memory pages starting from the
beginning of the segment, while the patch below made it so that the
memory is always allocated from the top of VA space, not from the
bottom.

Fixes: 179f916e88e4 ("mem: allocate in reverse to reduce fragmentation")

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/librte_eal/linuxapp/eal/eal_memalloc.c