[dpdk-dev] [PATCH] mem: get memzone from any CPU socket when hugepages are disabled
Thomas Monjalon
thomas.monjalon at 6wind.com
Fri Jul 26 17:09:48 CEST 2013
26/07/2013 16:56, Damien Millescamps :
> On 07/26/2013 04:35 PM, Adrien Mazarguil wrote:
> > 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 at 6wind.com>
> > ---
> >
> > lib/librte_eal/common/eal_common_memzone.c | 1 +
> > lib/librte_eal/linuxapp/eal/eal_memory.c | 2 +-
> > 2 files changed, 2 insertions(+), 1 deletion(-)
>
> ack
applied
--
Thomas
More information about the dev
mailing list