[PATCH 1/4] mempool: clarify mempool cache flush API behavior
Honnappa Nagarahalli
honnappa.nagarahalli at arm.com
Thu Mar 9 05:57:35 CET 2023
Clarify that mempool cache flush API works with default mempool cache.
It is applications responsibility to validate that the cache
belongs to the specified mempool.
Signed-off-by: Honnappa Nagarahalli <honnappa.nagarahalli at arm.com>
Reviewed-by: Kamalakshitha Aligeri <kamalakshitha.aligeri at arm.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang at arm.com>
---
lib/mempool/rte_mempool.h | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/lib/mempool/rte_mempool.h b/lib/mempool/rte_mempool.h
index 9f530db24b..009bd10215 100644
--- a/lib/mempool/rte_mempool.h
+++ b/lib/mempool/rte_mempool.h
@@ -1326,10 +1326,14 @@ rte_mempool_default_cache(struct rte_mempool *mp, unsigned lcore_id)
}
/**
- * Flush a user-owned mempool cache to the specified mempool.
+ * Flush a mempool cache to the specified mempool.
+ *
+ * It is application's responsibility to validate that the mempool cache
+ * belongs to the specified mempool.
*
* @param cache
- * A pointer to the mempool cache.
+ * A pointer to the mempool cache. If NULL, default mempool cache
+ * is used if configured.
* @param mp
* A pointer to the mempool.
*/
--
2.25.1
More information about the dev
mailing list