hash: add max key id query API
authorKumar Amber <kumar.amber@intel.com>
Tue, 26 Nov 2019 02:39:13 +0000 (02:39 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 20 Jan 2020 00:14:57 +0000 (01:14 +0100)
commitf6320e3c1195f25f16d84a37bc2ecdec98b199d3
tree886c937070b4650529a615975c2e23efb4347b52
parentcd723fc70cba47ae4688ba48f87ca91a8d04af0a
hash: add max key id query API

Adding new API function to query the maximum key ID
that could possibly be returned by rte_hash_add_key and
rte_hash_add_key_with_hash. When RTE_HASH_EXTRA_FLAGS_MULTI_WRITER_ADD
is set, the maximum key id is larger than the entry count specified
by the user.

Signed-off-by: Kumar Amber <kumar.amber@intel.com>
Acked-by: Yipeng Wang <yipeng1.wang@intel.com>
lib/librte_hash/rte_cuckoo_hash.c
lib/librte_hash/rte_hash.h
lib/librte_hash/rte_hash_version.map