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

Wang, Yipeng1 yipeng1.wang at intel.com
Wed Jan 9 19:53:26 CET 2019


>-----Original Message-----
>From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of gavin hu
>Sent: Wednesday, January 9, 2019 3:32 AM
>To: dev at dpdk.org
>Cc: nd at arm.com; thomas at monjalon.net; jerinj at marvell.com; hemant.agrawal at nxp.com; Honnappa.Nagarahalli at arm.com;
>gavin.hu at arm.com; olivier.matz at 6wind.com; Richardson, Bruce <bruce.richardson at intel.com>; stable at dpdk.org
>Subject: [dpdk-dev] [PATCH v6 3/3] hash: flush the rings instead of dequeuing one by one
>
>From: Gavin Hu <gavin.hu at arm.com>
>
>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 bucket feature")
>Cc: stable at dpdk.org
[Wang, Yipeng] I don't think it is a bug fix applicable to previous stable versions.
>
>Signed-off-by: Gavin Hu <gavin.hu at arm.com>
>Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli at arm.com>

[Wang, Yipeng] Otherwise the hash table change looks good to me and unit test passed on my setup.

Acked-by: Yipeng Wang <yipeng1.wang at intel.com>


More information about the dev mailing list