xen: fix build
Fix the compilation with CONFIG_RTE_LIBRTE_XEN_DOM0=y, by correcting the
typo in variable names.
Fixes: 8dab483701
("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>
This commit is contained in:
parent
cb99057168
commit
a461943208
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user