[dpdk-dev] Question regarding concurrency and hash table

2014-05-12 Thread Vladimir Medvedkin
Hi, Programmer's guide section 22.1: The hash and LPM libraries are, by design, thread unsafe in order to maintain performance. However, if required the developer can add layers on top of these libraries to provide thread safety. Locking is not needed in all situations, and in both the hash and

[dpdk-dev] Question regarding concurrency and hash table

2014-05-12 Thread Tomas Vestelind
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