mem: fix alignment of requested virtual areas
authorDariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Wed, 13 Jun 2018 19:08:14 +0000 (21:08 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 12 Jul 2018 22:25:09 +0000 (00:25 +0200)
commit7fa7216ed48dc80170f2584c4e6535d9d10c670c
tree6c427872ca806b64eaadc1a20cfa0c24bc74fb01
parent09037cf36c0888b6310d0e56739954e7bf691f97
mem: fix alignment of requested virtual areas

Although the alignment mechanism works as intended, the
`no_align` bool flag was set incorrectly. We were aligning
buffers that didn't need extra alignment, and weren't
aligning ones that really needed it.

Fixes: b7cc54187ea4 ("mem: move virtual area function in common directory")
Cc: stable@dpdk.org
Signed-off-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/librte_eal/common/eal_common_memory.c