[dpdk-dev] [PATCH v4 2/4] hash: add extendable bucket feature
Stephen Hemminger
stephen at networkplumber.org
Wed Oct 3 17:08:11 CEST 2018
On Fri, 28 Sep 2018 10:23:44 -0700
Yipeng Wang <yipeng1.wang at intel.com> wrote:
> + /* clear free extendable bucket ring and memory */
> + if (h->ext_table_support) {
> + memset(h->buckets_ext, 0, h->num_buckets *
> + sizeof(struct rte_hash_bucket));
> + while (rte_ring_dequeue(h->free_ext_bkts, &ptr) == 0)
> + rte_pause();
Pause is much to short. Maybe nanosleep or sched_yield()?
More information about the dev
mailing list