hash: check flags on creation for future proofing
authorStephen Hemminger <stephen@networkplumber.org>
Mon, 27 Apr 2020 23:16:23 +0000 (16:16 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 16 Jun 2020 15:46:39 +0000 (17:46 +0200)
commit0cc917d8099b65b89f79d7e0716ba6d21a55ee38
tree7866cb3492533f4db73a6f86510460bfe6f00df7
parent3e71b3d4565a0365a599ee074304b4d85c78859f
hash: check flags on creation for future proofing

All API's should check that they support the flag values
passed. If an application passes an invalid flag it could
cause problems in later ABI.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Acked-by: Yipeng Wang <yipeng1.wang@intel.com>
lib/librte_hash/rte_cuckoo_hash.c