From: David Marchand Date: Fri, 11 Sep 2015 08:02:30 +0000 (+0200) Subject: enic: fix allocation when not using first numa node X-Git-Tag: spdx-start~8383 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=7a0b8b7cab6ac63d52ebc6fdc252c7fa5a70330d;p=dpdk.git enic: fix allocation when not using first numa node Seen by code review. If dpdk is run with memory only available on socket != 0, then enic pmd refuses to initialize ports as this pmd requires some memory on socket 0. Fix this by setting socket to SOCKET_ID_ANY, so that allocations happen on the caller socket. Signed-off-by: David Marchand Acked by: Sujith Sankar --- diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c index 398ada2488..c3c62c45d0 100644 --- a/drivers/net/enic/enic_main.c +++ b/drivers/net/enic/enic_main.c @@ -538,7 +538,7 @@ enic_alloc_consistent(__rte_unused void *priv, size_t size, *dma_handle = 0; rz = rte_memzone_reserve_aligned((const char *)name, - size, 0, 0, ENIC_ALIGN); + size, SOCKET_ID_ANY, 0, ENIC_ALIGN); if (!rz) { pr_err("%s : Failed to allocate memory requested for %s", __func__, name);