mem: fix alignment requested with --base-virtaddr
authorDariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Fri, 15 Jun 2018 15:13:04 +0000 (17:13 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 12 Jul 2018 22:25:10 +0000 (00:25 +0200)
commit9dac150f98b2e09d83c0b06e36baf3045dee833e
tree0698b6b2255432f8f32e0c0cf6be67aa55294e96
parent7fa7216ed48dc80170f2584c4e6535d9d10c670c
mem: fix alignment requested with --base-virtaddr

Whenever a calculated base-virtaddr offset had to be
manually aligned to requested page_sz, we did not take
account of that alignment in incrementing the base-virtaddr
offset further. The next requested virtual area could print
a warning "hint [...] not respected!" and let the system
pick an address instead. As a result, this breaks secondary
process support on many system configurations.

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