From: Thomas Monjalon Subject: Re: [PATCH] mem: fix rte_malloc(SOCKET_ID_ANY), try to allocate on other nodes Date: Fri, 26 Jul 2013 17:08:53 +0200 Message-ID: <201307261708.53326.thomas.monjalon@6wind.com> References: <1374850501-9253-1-git-send-email-thomas.monjalon@6wind.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: dev-VfR2kkLFssw@public.gmane.org Return-path: In-Reply-To: <1374850501-9253-1-git-send-email-thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" 26/07/2013 16:55, Thomas Monjalon : > From: Olivier Matz > > 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 > Acked-by: Thomas Monjalon pushed -- Thomas