As a consequence of the improved mempool cache algorithm, the mempool
driver was updated to not modify the mempool cache's flushthresh field,
which is now obsolete, and modifying it has no effect.

Signed-off-by: Morten Brørup <[email protected]>
---
v7:
* Rebased.
v6:
* Moved driver changes out as separate patches, for easier review. (Bruce)
---
Depends-on: patch-164745 ("mempool: improve cache behaviour and performance")
---
 drivers/mempool/dpaa2/dpaa2_hw_mempool.c | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/drivers/mempool/dpaa2/dpaa2_hw_mempool.c 
b/drivers/mempool/dpaa2/dpaa2_hw_mempool.c
index 02b6741853..ee001d8ce0 100644
--- a/drivers/mempool/dpaa2/dpaa2_hw_mempool.c
+++ b/drivers/mempool/dpaa2/dpaa2_hw_mempool.c
@@ -54,8 +54,6 @@ rte_hw_mbuf_create_pool(struct rte_mempool *mp)
        struct dpaa2_bp_info *bp_info;
        struct dpbp_attr dpbp_attr;
        uint32_t bpid;
-       unsigned int lcore_id;
-       struct rte_mempool_cache *cache;
        int ret;
 
        avail_dpbp = dpaa2_alloc_dpbp_dev();
@@ -152,18 +150,6 @@ rte_hw_mbuf_create_pool(struct rte_mempool *mp)
        DPAA2_MEMPOOL_DEBUG("BP List created for bpid =%d", dpbp_attr.bpid);
 
        h_bp_list = bp_list;
-       /* Update per core mempool cache threshold to optimal value which is
-        * number of buffers that can be released to HW buffer pool in
-        * a single API call.
-        */
-       for (lcore_id = 0; lcore_id < RTE_MAX_LCORE; lcore_id++) {
-               cache = &mp->local_cache[lcore_id];
-               DPAA2_MEMPOOL_DEBUG("lCore %d: cache->flushthresh %d -> %d",
-                       lcore_id, cache->flushthresh,
-                       (uint32_t)(cache->size + DPAA2_MBUF_MAX_ACQ_REL));
-               if (cache->flushthresh)
-                       cache->flushthresh = cache->size + 
DPAA2_MBUF_MAX_ACQ_REL;
-       }
 
        return 0;
 err4:
-- 
2.43.0

Reply via email to