hash: validate hash bucket entries while compiling
authorHonnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Thu, 31 May 2018 15:30:49 +0000 (10:30 -0500)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 12 Jul 2018 10:43:10 +0000 (12:43 +0200)
commit7c872b96983a23f67d6cea37b232717c346a83ff
treeedb2e05f04deefbe693783bfce6973b487f6d445
parent5cc0ee66e4cc2fb7ca519514be9f6af54a047a53
hash: validate hash bucket entries while compiling

Validate RTE_HASH_BUCKET_ENTRIES during compilation instead of
run time.

Signed-off-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Reviewed-by: Gavin Hu <gavin.hu@arm.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
lib/librte_eal/common/include/rte_common.h
lib/librte_hash/rte_cuckoo_hash.c
lib/librte_hash/rte_cuckoo_hash.h