On Fri, Oct 26, 2018 at 03:04:12AM +0100, Wang, Yipeng1 wrote: > >-----Original Message----- > >From: Honnappa Nagarahalli [mailto:honnappa.nagaraha...@arm.com] > >> --- > >> lib/librte_hash/rte_cuckoo_hash.c | 4 ++-- > >> 1 file changed, 2 insertions(+), 2 deletions(-) > >> > >> diff --git a/lib/librte_hash/rte_cuckoo_hash.c > >> b/lib/librte_hash/rte_cuckoo_hash.c > >> index 0648a22..4a2647e 100644 > >> --- a/lib/librte_hash/rte_cuckoo_hash.c > >> +++ b/lib/librte_hash/rte_cuckoo_hash.c > >> @@ -574,14 +574,14 @@ rte_hash_reset(struct rte_hash *h) > >> > >> /* clear the free ring */ > >> while (rte_ring_dequeue(h->free_slots, &ptr) == 0) > >> - rte_pause(); > >> + continue; > >Minor comment: 'continue' can be removed. > > > [Wang, Yipeng] I did not find a pretty way to do it without coding style > warning, e.g. add semicolon in same line... > Anyone know a common way to do it in DPDK? > Semi-colon on a new line, possibly with comment should work ok. However, the continue is harmless, so I'm ok with it as-is.
- [dpdk-dev] [PATCH v2 0/4] hash: improve multiple plac... Yipeng Wang
- [dpdk-dev] [PATCH v2 2/4] test/hash: change mult... Yipeng Wang
- Re: [dpdk-dev] [PATCH v2 2/4] test/hash: cha... Bruce Richardson
- [dpdk-dev] [PATCH v2 1/4] hash: fix unnecessary ... Yipeng Wang
- Re: [dpdk-dev] [PATCH v2 1/4] hash: fix unne... Mattias Rönnblom
- Re: [dpdk-dev] [PATCH v2 1/4] hash: fix ... Bruce Richardson
- Re: [dpdk-dev] [PATCH v2 1/4] hash: fix unne... Honnappa Nagarahalli
- Re: [dpdk-dev] [PATCH v2 1/4] hash: fix ... Wang, Yipeng1
- Re: [dpdk-dev] [PATCH v2 1/4] hash: ... Bruce Richardson
- [dpdk-dev] [PATCH v2 4/4] test/hash: remove hash... Yipeng Wang
- Re: [dpdk-dev] [PATCH v2 4/4] test/hash: rem... Bruce Richardson
- [dpdk-dev] [PATCH v2 3/4] test/hash: add readwri... Yipeng Wang
- Re: [dpdk-dev] [PATCH v2 3/4] test/hash: add... Bruce Richardson
- Re: [dpdk-dev] [PATCH v2 3/4] test/hash: add... Honnappa Nagarahalli
- [dpdk-dev] [PATCH v3 0/6] hash: improve multiple... Yipeng Wang
- [dpdk-dev] [PATCH v3 1/6] hash: fix unnecess... Yipeng Wang
- [dpdk-dev] [PATCH v3 6/6] test/hash: fix to ... Yipeng Wang
- [dpdk-dev] [PATCH v3 3/6] test/hash: test mo... Yipeng Wang
- Re: [dpdk-dev] [PATCH v3 3/6] test/hash:... Honnappa Nagarahalli