summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorOlivier Matz <olivier.matz@6wind.com>2016-07-11 12:20:25 +0200
committerThomas Monjalon <thomas.monjalon@6wind.com>2016-07-11 18:47:20 +0200
commita461943208397029b85273b89d4ac30f7c89c3fa (patch)
tree2105e25fcf5bd7e41cc1ba911fa7955c49581f21 /lib
parentcb9905716896e207b0e85c1d628549d0a966db5a (diff)
downloaddpdk-a461943208397029b85273b89d4ac30f7c89c3fa.zip
dpdk-a461943208397029b85273b89d4ac30f7c89c3fa.tar.gz
dpdk-a461943208397029b85273b89d4ac30f7c89c3fa.tar.xz
xen: fix build
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") Reported-by: Huilong Xu <huilongx.xu@intel.com> Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/librte_eal/linuxapp/eal/eal_xen_memory.c4
1 files 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;
}