table: fix crash during key overload
authorMiroslaw Walukiewicz <miroslaw.walukiewicz@intel.com>
Tue, 3 Mar 2015 14:16:00 +0000 (09:16 -0500)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 26 Mar 2015 21:33:41 +0000 (22:33 +0100)
commit2f95a470b80df115a0a0c9fba4bfbae73f4d66ae
tree37fb85c5990bcf5cf7f63ae3d37dd5317b8a9162
parent38f4f01f8fe7aba72f858fd6faa0126edc645fe1
table: fix crash during key overload

hash_key8_ext, hash_key16_ext and hash_key32_ext tables allocate cache
entries to support table overload cases. The crash can occur when cache
entry is free after use.
The problem is with computing the index of the free cache entry.

Signed-off-by: Mirek Walukiewicz <miroslaw.walukiewicz@intel.com>
Signed-off-by: Maciej Gajdzica <maciejx.t.gajdzica@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
lib/librte_table/rte_table_hash_key16.c
lib/librte_table/rte_table_hash_key32.c
lib/librte_table/rte_table_hash_key8.c