hash: move struct field to keep ABI stable
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Tue, 21 Jul 2015 14:10:19 +0000 (15:10 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 22 Jul 2015 09:24:40 +0000 (11:24 +0200)
commit9cd270a67856eb8d4ae43e5c84ff5390c6cb4eed
tree988a78291390ae04fbbfb3fbab325d6d8ca53ce0
parent27b31d130e135d4c2d6e7033539a4729b2aa6a5f
hash: move struct field to keep ABI stable

In order to keep the ABI consistent with the old hash library,
hash_func_init_val field has been moved, so it remains
at the same offset as previously, since hash_func and
hash_func_init_val are fields accessed by the public function
rte_hash_hash and must keep the same offset as older versions.

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