hash: fix memory allocation of cuckoo key table
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Mon, 31 Aug 2015 13:30:03 +0000 (14:30 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 9 Sep 2015 09:49:20 +0000 (11:49 +0200)
commit7d49e0f4a979206ec8faa2f64c69a771b8c27d14
tree5f847e8d79c2fc23cd47aa010c2ecde10bb32e86
parent79db649c4b8222d0f80b27d3f5d20a3ed40fa09b
hash: fix memory allocation of cuckoo key table

When calculating the size for the table which allocates
the keys, size was calculated wrongly from multiplying
two 32-bit variables, resulting on a 32-bit number,
before casting to 64-bit, so maximum size was 4G.

Fixes: 48a399119619 ("hash: replace with cuckoo hash implementation")

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