mem: get memzone from any CPU socket when hugepages are disabled
authorAdrien Mazarguil <adrien.mazarguil@6wind.com>
Thu, 21 Feb 2013 16:39:23 +0000 (17:39 +0100)
committerDavid Marchand <david.marchand@6wind.com>
Wed, 26 Feb 2014 10:07:27 +0000 (11:07 +0100)
commit29a2ca738889c3d2a897a2b01ee0303bd5c8dc16
tree269b2d434f7f2276c9d07794e9dc66e0f9e8e477
parent926edd634e4a2c045056599864775c0a597d97e4
mem: get memzone from any CPU socket when hugepages are disabled

When huge pages are disabled, memory is allocated for a single, undefined
CPU socket using malloc(), causing rte_memzone_reserve_aligned() to fail
most of the time.

This patch causes that memory to use SOCKET_ID_ANY instead of 0, and allow
it to be used in place of any socket ID specified by user.

Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Acked-by: Damien Millescamps <damien.millescamps@6wind.com>
lib/librte_eal/common/eal_common_memzone.c
lib/librte_eal/linuxapp/eal/eal_memory.c