Thread (7 messages) flat view 7 messages, 3 authors, 2017-02-07

Re: [PATCH] mempool: Introduce _populate_mz_range api

From: Jerin Jacob <hidden>
Date: 2017-01-20 14:38:28

On Fri, Jan 20, 2017 at 07:50:17PM +0530, santosh.shukla@caviumnetworks.com wrote:
From: Santosh Shukla <redacted>
 
+/*
+ * wrapper to populate mz's pa/va addr range and len info to external
+ * mempool. HW mempool implementation to cache-in this inforamation
+ * in their local data structure.
+ * Note: api always get called before ops_alloc().
+ * */
+void
+rte_mempool_ops_populate_mz_range(struct rte_mempool *mp,
+				  const struct rte_memzone *mz)
+{
+	struct rte_mempool_ops *ops;
+
+	ops = rte_mempool_get_ops(mp->ops_index);
+	return ops->populate_mz_range(mp, mz);
Check for the NULL before calling the function pointer.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help