RE: [PATCH v3] mempool: fix put objects to mempool with cache

2022-01-28 Thread Morten Brørup
> From: Olivier Matz [mailto:olivier.m...@6wind.com] > Sent: Monday, 24 January 2022 16.39 > > Hi Morten, > > On Wed, Jan 19, 2022 at 04:03:01PM +0100, Morten Brørup wrote: > > mempool: fix put objects to mempool with cache > > > > This patch optimizes the rte_mempool_do_generic_put() caching > a

Re: [PATCH v3] mempool: fix put objects to mempool with cache

2022-01-24 Thread Olivier Matz
Hi Morten, On Wed, Jan 19, 2022 at 04:03:01PM +0100, Morten Brørup wrote: > mempool: fix put objects to mempool with cache > > This patch optimizes the rte_mempool_do_generic_put() caching algorithm, > and fixes a bug in it. I think we should avoid grouping fixes and optimizations in one patch.

[PATCH v3] mempool: fix put objects to mempool with cache

2022-01-19 Thread Morten Brørup
mempool: fix put objects to mempool with cache This patch optimizes the rte_mempool_do_generic_put() caching algorithm, and fixes a bug in it. The existing algorithm was: 1. Add the objects to the cache 2. Anything greater than the cache size (if it crosses the cache flush threshold) is flu