[dpdk-dev] Question regarding concurrency and hash table

Tomas Vestelind Tomas.Vestelind at hiq.se
Mon May 12 10:29:25 CEST 2014


Hello all!

I have a question regarding the possible concurrency issues in hash table. My questions is:
Is it possible to call rte_hash_add() and rte_hash_lookup() at the same time without data inconsistency? 

My guess is that I need to use a lock as protection. I see that you have a couple of nice ones :)

BR,
Tomas Vestelind


More information about the dev mailing list