From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f43.google.com (mail-wg0-f43.google.com [74.125.82.43]) by dpdk.org (Postfix) with ESMTP id D11BF19F5 for ; Tue, 23 Dec 2014 18:23:26 +0100 (CET) Received: by mail-wg0-f43.google.com with SMTP id l18so9651510wgh.2 for ; Tue, 23 Dec 2014 09:23:26 -0800 (PST) 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=GkScsqkm3ssdEdYsDzQKFxKzCgyQHUcN+5qSx7m8GPw=; b=BIKpplNIVVpxQyVwsi+a5UoxoCyiqNqn+pV0THNZuFS8w4iCKEGXsUS/FERgsitgAw 5mVBr7gfZe2+ckYZjXnQtHRMubq4izdWyZqYoz599rSHb9waL9T4uX4l+Vy/+NRqKOxv 33si1lssDJgDBEzdQ8rAgOvIft4OgZ4Y23b5qIlGYKG9UR5Oft1evJ6cxUoyC4VDzGJu /kJm521XhvzgCPvmfTyIGWrB+5c3/0bD0fbFCWdh9BqEjAmi2JhI8m3bW/yM9+2oW2/L ENCh3bDApXTBNsleAaDI9ZYgeleeGCjkMvbHF2xD7VCq5fDne0j3bYUNrZkx4aM1bbRa h4ag== X-Gm-Message-State: ALoCoQkRtw7YiASziga0WBvPJoNwocmBtd6ecbLt1CA6alO5kiDGgzxzZKHqLP3d7DGLpjeVFEWU X-Received: by 10.180.74.146 with SMTP id t18mr42343290wiv.62.1419355406678; Tue, 23 Dec 2014 09:23:26 -0800 (PST) Received: from vladz-laptop.cloudius-systems.com. (system.cloudius-systems.com. [84.94.198.183]) by mx.google.com with ESMTPSA id e7sm28435506wjx.31.2014.12.23.09.23.25 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Dec 2014 09:23:26 -0800 (PST) From: Vlad Zolotarov To: dev@dpdk.org Date: Tue, 23 Dec 2014 19:23:17 +0200 Message-Id: <1419355397-4954-1-git-send-email-vladz@cloudius-systems.com> X-Mailer: git-send-email 2.1.0 Subject: [dpdk-dev] [PATCH RFC] eal_memory: Search only DPDK hugetlbfs maps 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: Tue, 23 Dec 2014 17:23:27 -0000 When scanning the hugetlbfs maps search only for the DPDK maps. This will allow the application create its own hugetlbfs mappings and use the DPDK facilities on the same hugetlbfs mount point. Signed-off-by: Vlad Zolotarov --- lib/librte_eal/linuxapp/eal/eal_memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eal/linuxapp/eal/eal_memory.c b/lib/librte_eal/linuxapp/eal/eal_memory.c index bae2507..a67a1b0 100644 --- a/lib/librte_eal/linuxapp/eal/eal_memory.c +++ b/lib/librte_eal/linuxapp/eal/eal_memory.c @@ -611,7 +611,7 @@ find_numasocket(struct hugepage_file *hugepg_tbl, struct hugepage_info *hpi) } snprintf(hugedir_str, sizeof(hugedir_str), - "%s/", hpi->hugedir); + "%s/%s", hpi->hugedir, internal_config.hugefile_prefix); /* parse numa map */ while (fgets(buf, sizeof(buf), f) != NULL) { -- 2.1.0