From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f180.google.com (mail-wi0-f180.google.com [209.85.212.180]) by dpdk.org (Postfix) with ESMTP id B07A637B7 for ; Fri, 11 Sep 2015 10:03:10 +0200 (CEST) Received: by wicfx3 with SMTP id fx3so54418826wic.1 for ; Fri, 11 Sep 2015 01:03:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=vChZFbY40VS83lyPkIyLv5S4+JrThx7/nlcYI9mAJDc=; b=UgMC7IMLFOn8r3oemXU6Rb6VH7wBedzea56JYcU7cZPNkcPLOLGthuxpxIZl3neLaf OhIqc/7nhWMCmwAPs/pAaYoU5ZgCXhW13u+in1Mtl1BnO5Cl/yGovBgJ5I9h8ixZx2xF VaG519EZfC+J2WnsbxaIBmx1Ht8wjIHnne4YEP8BMgrwJLe4DgSqbGx9q6HWJ0lf6zTF 2isoX7prNFT9DNmmZqwWfwuE/Y6oYaoFehHNDeqKKwvFisr4/Xih8TK+jMAC0p1Dsqwn LeU2TBBs5Rli5HD9Pa58nXteD4ih4Pq8PsbmwHPNoU/PC7tgVH9DaEkl6ENEwx0md6YZ BX8A== X-Gm-Message-State: ALoCoQnKgpvjap6Y1eW+Gb/0+UIYAi1FieFBMIMk5BxhpQmUb8X8vc5dOqwh+kKGxOiMB5F/SqDK X-Received: by 10.180.99.232 with SMTP id et8mr13980637wib.80.1441958559742; Fri, 11 Sep 2015 01:02:39 -0700 (PDT) Received: from gloops.dev.6wind.com (89-158-215-180.rev.numericable.fr. [89.158.215.180]) by smtp.gmail.com with ESMTPSA id qq4sm438201wjc.14.2015.09.11.01.02.38 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 11 Sep 2015 01:02:39 -0700 (PDT) From: David Marchand To: dev@dpdk.org Date: Fri, 11 Sep 2015 10:02:30 +0200 Message-Id: <1441958551-29313-1-git-send-email-david.marchand@6wind.com> X-Mailer: git-send-email 1.9.1 Subject: [dpdk-dev] [PATCH 1/2] enic: fix allocation when not using first numa node X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Sep 2015 08:03:10 -0000 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 --- drivers/net/enic/enic_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c index 3b8719f..46a90bd 100644 --- a/drivers/net/enic/enic_main.c +++ b/drivers/net/enic/enic_main.c @@ -539,7 +539,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); -- 1.9.1