eal/bsd: enable contigmem blocks >1GB in size
authorBruce Richardson <bruce.richardson@intel.com>
Mon, 2 Mar 2015 16:34:20 +0000 (16:34 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 10 Mar 2015 15:19:43 +0000 (16:19 +0100)
commita4a61f79e5c7d120ca7a77eaa13ad863b205a1e9
treeaab90d6ec9ec8873dee1ebf2200090bf843863fb
parent676b1bd223463a08388db0c3cc20e426ea155c71
eal/bsd: enable contigmem blocks >1GB in size

The contigmem module was using an "int" type for specifying the
size of blocks of memory to be reserved. A 2GB block was therefore
overflowing the signed 32-bit value, making 1GB the largest block
size that could be reserved as a single unit.
The fix is to change the type used for the buffer/block size to
an "int64_t" value.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_eal/bsdapp/contigmem/contigmem.c
lib/librte_eal/bsdapp/eal/eal_hugepage_info.c