git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net/txgbe: support VF stats and xstats
[dpdk.git]
/
drivers
/
net
/
pfe
/
base
/
pfe.h
diff --git
a/drivers/net/pfe/base/pfe.h
b/drivers/net/pfe/base/pfe.h
index
72741ba
..
0a88e98
100644
(file)
--- a/
drivers/net/pfe/base/pfe.h
+++ b/
drivers/net/pfe/base/pfe.h
@@
-414,7
+414,7
@@
static inline phys_addr_t pfe_mem_vtop(uint64_t vaddr)
memseg = rte_mem_virt2memseg((void *)(uintptr_t)vaddr, NULL);
if (memseg)
- return memseg->
phys_addr
+ RTE_PTR_DIFF(vaddr, memseg->addr);
+ return memseg->
iova
+ RTE_PTR_DIFF(vaddr, memseg->addr);
return (size_t)NULL;
}