[dpdk-dev] __rte_hash_add_key_with_hash BUG with RTE_HASH_EXTRA_FLAGS_MULTI_WRITER_ADD extra flag ?

Arthas kangzy1982 at qq.com
Sun Mar 12 16:12:28 CET 2017


If the hash table created with RTE_HASH_EXTRA_FLAGS_MULTI_WRITER_ADD  extra flags, and more one worker  add same value and same key. the firt worker will add value & key success, and second worker will execute lock and found a exist value & key and return exist index without unlock. then it course next adder spinlock deadlock!


Best Regards!
Arthas


More information about the dev mailing list