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
mempool: rename address mapping function to IOVA
[dpdk.git]
/
lib
/
librte_mempool
/
rte_mempool.h
diff --git
a/lib/librte_mempool/rte_mempool.h
b/lib/librte_mempool/rte_mempool.h
index
41f8b2d
..
4a31f03
100644
(file)
--- a/
lib/librte_mempool/rte_mempool.h
+++ b/
lib/librte_mempool/rte_mempool.h
@@
-1452,19
+1452,17
@@
rte_mempool_empty(const struct rte_mempool *mp)
}
/**
}
/**
- * Return the
physical
address of elt, which is an element of the pool mp.
+ * Return the
IO
address of elt, which is an element of the pool mp.
*
*
- * @param mp
- * A pointer to the mempool structure.
* @param elt
* A pointer (virtual address) to the element of the pool.
* @return
* @param elt
* A pointer (virtual address) to the element of the pool.
* @return
- * The
physical
address of the elt element.
+ * The
IO
address of the elt element.
* If the mempool was created with MEMPOOL_F_NO_PHYS_CONTIG, the
* If the mempool was created with MEMPOOL_F_NO_PHYS_CONTIG, the
- * returned value is RTE_BAD_
PHYS_ADDR
.
+ * returned value is RTE_BAD_
IOVA
.
*/
*/
-static inline
phys_addr
_t
-rte_mempool_virt2
phy(__rte_unused const struct rte_mempool *mp,
const void *elt)
+static inline
rte_iova
_t
+rte_mempool_virt2
iova(
const void *elt)
{
const struct rte_mempool_objhdr *hdr;
hdr = (const struct rte_mempool_objhdr *)RTE_PTR_SUB(elt,
{
const struct rte_mempool_objhdr *hdr;
hdr = (const struct rte_mempool_objhdr *)RTE_PTR_SUB(elt,
@@
-1472,6
+1470,13
@@
rte_mempool_virt2phy(__rte_unused const struct rte_mempool *mp, const void *elt)
return hdr->iova;
}
return hdr->iova;
}
+__rte_deprecated
+static inline phys_addr_t
+rte_mempool_virt2phy(__rte_unused const struct rte_mempool *mp, const void *elt)
+{
+ return rte_mempool_virt2iova(elt);
+}
+
/**
* Check the consistency of mempool objects.
*
/**
* Check the consistency of mempool objects.
*