[dpdk-dev] [PATCH] mem: fix rte_malloc(SOCKET_ID_ANY), try to allocate on other nodes

Thomas Monjalon thomas.monjalon at 6wind.com
Fri Jul 26 17:08:53 CEST 2013


26/07/2013 16:55, Thomas Monjalon :
> From: Olivier Matz <olivier.matz at 6wind.com>
> 
> Before this patch, rte_malloc(SOCKET_ID_ANY) was equivalent to
> rte_malloc(this_socket). If the user specifies SOCKET_ID_ANY, it means that
> memory can be allocated on any socket. So fix the behavior of rte_malloc()
> in order to do that. The current CPU socket is still the default, but if
> it fails, other sockets are tested.
> 
> Signed-off-by: Olivier Matz <olivier.matz at 6wind.com>
> Acked-by: Thomas Monjalon <thomas.monjalon at 6wind.com>

pushed

-- 
Thomas


More information about the dev mailing list