From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by dpdk.org (Postfix) with ESMTP id 2FC047E6A for ; Fri, 11 Sep 2015 10:02:41 +0200 (CEST) Received: by wiclk2 with SMTP id lk2so48795238wic.1 for ; Fri, 11 Sep 2015 01:02:41 -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:in-reply-to :references; bh=fP2EAVm3sEpBemBuDykAMOc0E4wekOWJHKxVTxJ5GEc=; b=iG5FP3OvvefyT4iwfxsi6oU4R1Stcb//xJiPIMe9wVSRpHy5eF2L9hDHOx091rMhM8 LzWD1c82k9pbOzvUL6Y3BWEtQZVTbJbu9uY25a5h0jgUYnrdwWcRSiP4KUo+yI+tQFkE 5TgyTH5CuOAIw3yKS42F54Ovgwm5ztDUfwESHYfl6YjpJ1xH9p2UiPl2eqhpl7pwNjqX 1CasI3rOkIk7/d+PKayJ+E5H8LHKLyvxL3m2lhqS5cbueHCQC7qSevIN+LwMHFmpbgYH d8QDlC4VBI28f86Ja0Bd5LMQpRrMkHuRgvjVo/wUULcVBq6WOBJPXDk1jyMSjX/OW3Ua lMBg== X-Gm-Message-State: ALoCoQn/mIVU42T1I8OKbkXR3iGvHXEI9hkdssK6mz1eVZc/PN6AijOahr93p7d9m/tPTQ6EJnq1 X-Received: by 10.180.37.164 with SMTP id z4mr14746591wij.30.1441958560959; Fri, 11 Sep 2015 01:02:40 -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.39 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 11 Sep 2015 01:02:40 -0700 (PDT) From: David Marchand To: dev@dpdk.org Date: Fri, 11 Sep 2015 10:02:31 +0200 Message-Id: <1441958551-29313-2-git-send-email-david.marchand@6wind.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1441958551-29313-1-git-send-email-david.marchand@6wind.com> References: <1441958551-29313-1-git-send-email-david.marchand@6wind.com> Subject: [dpdk-dev] [PATCH 2/2] enic: fix hash creation 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:02:41 -0000 If dpdk is run with memory only available on socket != 0, then hash creation will fail and flow director feature won't be available. Fix this by asking for allocation on caller socket. Signed-off-by: David Marchand --- drivers/net/enic/enic_clsf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/enic/enic_clsf.c b/drivers/net/enic/enic_clsf.c index 656b25b..e7416ce 100644 --- a/drivers/net/enic/enic_clsf.c +++ b/drivers/net/enic/enic_clsf.c @@ -61,7 +61,6 @@ #define DEFAULT_HASH_FUNC rte_jhash #endif -#define SOCKET_0 0 #define ENICPMD_CLSF_HASH_ENTRIES ENICPMD_FDIR_MAX void enic_fdir_stats_get(struct enic *enic, struct rte_eth_fdir_stats *stats) @@ -247,7 +246,7 @@ int enic_clsf_init(struct enic *enic) .key_len = sizeof(struct rte_eth_fdir_filter), .hash_func = DEFAULT_HASH_FUNC, .hash_func_init_val = 0, - .socket_id = SOCKET_0, + .socket_id = SOCKET_ID_ANY, }; enic->fdir.hash = rte_hash_create(&hash_params); -- 1.9.1