table: fix empty bucket removal during entry deletion
authorBalazs Nemeth <balazs.nemeth@intel.com>
Fri, 26 Sep 2014 09:37:37 +0000 (09:37 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 24 Nov 2014 12:17:49 +0000 (13:17 +0100)
commitfb20a4bd0f68da9405420312561e98d6874b26b1
treeb0f169549662172106672dfa5d000b16aa581b70
parentfc1f2750a3ec6da919e3c86e59d56f34ec97154b
table: fix empty bucket removal during entry deletion

When an entry is deleted from an extensible rte_table_hash, the bucket
that stored the entry can become empty. If this is the case, the
bucket needs to be removed from the chain of buckets.

During removal of the bucket, the chain should be updated first. If
the bucket that will be removed is cleared first, the chain is broken
and the information to update the chain is lost.

Signed-off-by: Balazs Nemeth <balazs.nemeth@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
lib/librte_table/rte_table_hash_ext.c