hash: free internal ring when freeing hash
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Fri, 2 Oct 2015 16:07:13 +0000 (17:07 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 4 Nov 2015 00:01:48 +0000 (01:01 +0100)
commit9fd0052ee6102618701d4bb2faf7bc8ed1b5c97d
tree35b8e120c0bfcb03da9e0de948a651bc280d9dc8
parent4e32101f9b01827ed24bf26c53cc9aec7e8db231
hash: free internal ring when freeing hash

Since freeing a ring is now possible, then when freeing
a hash table, its internal ring can be freed as well.
Therefore when a new table, with the same name as a previously
freed table, is created, there is no need to look up
the already allocated ring.

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_hash/rte_cuckoo_hash.c