Re: [dpdk-dev] [PATCH v3 4/7] hash: add memory ordering to avoid race conditions

2018-10-16 Thread Honnappa Nagarahalli
> When I applied this commit: > fatal: sha1 information is lacking or useless > (lib/librte_hash/rte_cuckoo_hash.c). > Please double check. I will verify the patches when I send out the next version. > > >-Original Message- > >From: Honnappa Nagarahalli [mailto:honnappa.nagaraha...@arm.co

Re: [dpdk-dev] [PATCH v3 4/7] hash: add memory ordering to avoid race conditions

2018-10-12 Thread Wang, Yipeng1
When I applied this commit: fatal: sha1 information is lacking or useless (lib/librte_hash/rte_cuckoo_hash.c). Please double check. >-Original Message- >From: Honnappa Nagarahalli [mailto:honnappa.nagaraha...@arm.com] >Sent: Thursday, October 11, 2018 11:32 PM >To: Richardson, Bruce ; De

[dpdk-dev] [PATCH v3 4/7] hash: add memory ordering to avoid race conditions

2018-10-11 Thread Honnappa Nagarahalli
Only race condition that can occur is - using the key store element before the key write is completed. Hence, while inserting the element the release memory order is used. Any other race condition is caught by the key comparison. Memory orderings are added only where needed. For ex: reads in the w