Re: [dpdk-dev] [PATCH v2 2/2] hash: flush the rings instead of dequeuing one by one

2018-12-12 Thread Mattias Rönnblom
On 2018-12-12 07:47, Gavin Hu wrote: Within rte_hash_reset, calling a while loop to dequeue one by one from the ring, while not using them at all, is wasting cycles, The patch just flush the ring by resetting the indices can save cpu cycles. Fixes: b26473ff8f4a ("hash: add reset function") Fixes

Re: [dpdk-dev] [PATCH v2 2/2] hash: flush the rings instead of dequeuing one by one

2018-12-12 Thread Bruce Richardson
On Wed, Dec 12, 2018 at 02:47:33PM +0800, Gavin Hu wrote: > Within rte_hash_reset, calling a while loop to dequeue one by > one from the ring, while not using them at all, is wasting cycles, > The patch just flush the ring by resetting the indices can save cpu > cycles. > > Fixes: b26473ff8f4a ("h

[dpdk-dev] [PATCH v2 2/2] hash: flush the rings instead of dequeuing one by one

2018-12-11 Thread Gavin Hu
Within rte_hash_reset, calling a while loop to dequeue one by one from the ring, while not using them at all, is wasting cycles, The patch just flush the ring by resetting the indices can save cpu cycles. Fixes: b26473ff8f4a ("hash: add reset function") Fixes: 75706568a7eb ("hash: add extendable b