From patchwork Mon Jul 11 10:20:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olivier Matz X-Patchwork-Id: 14730 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id D3EDB3238; Mon, 11 Jul 2016 12:20:39 +0200 (CEST) Received: from proxy.6wind.com (host.76.145.23.62.rev.coltfrance.com [62.23.145.76]) by dpdk.org (Postfix) with ESMTP id 761FF2BA1 for ; Mon, 11 Jul 2016 12:20:38 +0200 (CEST) Received: from glumotte.dev.6wind.com (unknown [10.16.0.195]) by proxy.6wind.com (Postfix) with ESMTP id 04DF527CF0; Mon, 11 Jul 2016 12:20:38 +0200 (CEST) From: Olivier Matz To: dev@dpdk.org, huilongx.xu@intel.com, waterman.cao@intel.com, yuanhan.liu@intel.com, weichunx.chen@intel.com, yu.y.liu@intel.com Cc: thomas.monjalon@6wind.com Date: Mon, 11 Jul 2016 12:20:25 +0200 Message-Id: <1468232428-24088-2-git-send-email-olivier.matz@6wind.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1468232428-24088-1-git-send-email-olivier.matz@6wind.com> References: <1468232428-24088-1-git-send-email-olivier.matz@6wind.com> Subject: [dpdk-dev] [PATCH 1/4] eal: fix typo in Xen Dom0 specific code 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Fix the compilation with CONFIG_RTE_LIBRTE_XEN_DOM0=y, by correcting the typo in variable names. Fixes: 8dab48370129 ("xen: return machine address without knowing memseg id") Signed-off-by: Olivier Matz --- lib/librte_eal/linuxapp/eal/eal_xen_memory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librte_eal/linuxapp/eal/eal_xen_memory.c b/lib/librte_eal/linuxapp/eal/eal_xen_memory.c index 0b612bb..bddbdb0 100644 --- a/lib/librte_eal/linuxapp/eal/eal_xen_memory.c +++ b/lib/librte_eal/linuxapp/eal/eal_xen_memory.c @@ -167,8 +167,8 @@ rte_xen_mem_phy2mch(int32_t memseg_id, const phys_addr_t phy_addr) if (memseg_id == -1) { for (i = 0; i < RTE_MAX_MEMSEG; i++) { if ((phy_addr >= memseg[i].phys_addr) && - (phys_addr < memseg[i].phys_addr + - memseg[i].size)) { + (phy_addr < memseg[i].phys_addr + + memseg[i].len)) { memseg_id = i; break; }