mem: fix 32-bit memory upper limit for non-legacy mode
authorAnatoly Burakov <anatoly.burakov@intel.com>
Fri, 20 Apr 2018 15:25:25 +0000 (16:25 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 27 Apr 2018 21:52:51 +0000 (23:52 +0200)
commita99e8df63f8ab4b782dc5249682ab1152ff2965f
tree009c57ae018c781aa7a2386f81f562fa18f7a037
parent64b6fcb1610814c68b3f6fe57f59732b98502aa3
mem: fix 32-bit memory upper limit for non-legacy mode

32-bit mode has an upper limit on amount of VA space it can preallocate,
but the original implementation used the wrong constant, resulting in
failure to initialize due to integer overflow. Fix it by using the
correct constant.

Fixes: 66cc45e293ed ("mem: replace memseg with memseg lists")

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Tested-by: Jananee Parthasarathy <jananeex.m.parthasarathy@intel.com>
lib/librte_eal/common/eal_common_memory.c