hash: move duplicated code into functions
authorYipeng Wang <yipeng1.wang@intel.com>
Tue, 10 Jul 2018 16:59:57 +0000 (09:59 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 12 Jul 2018 21:03:29 +0000 (23:03 +0200)
commit406da3dfb3b54bc022d3aac6206814512c81c0bf
tree00c81937fba68bc8083914ed414fb02872330807
parent575a48c961f47f1078bd1ceacf8484fb1038f7f8
hash: move duplicated code into functions

This commit refactors the hash table lookup/add/del code
to remove some code duplication. Processing on primary bucket can
also apply to secondary bucket with same code.

Signed-off-by: Yipeng Wang <yipeng1.wang@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
lib/librte_hash/rte_cuckoo_hash.c