From: Intel Date: Wed, 19 Dec 2012 23:00:00 +0000 (+0100) Subject: hash: fix check when creating fbk hash X-Git-Tag: spdx-start~11388 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=34258ce5db7a3cb997fc774b02d72349e9f8acc5;p=dpdk.git hash: fix check when creating fbk hash Signed-off-by: Intel --- diff --git a/lib/librte_hash/rte_fbk_hash.c b/lib/librte_hash/rte_fbk_hash.c index 8128dfb17c..4163c928c7 100644 --- a/lib/librte_hash/rte_fbk_hash.c +++ b/lib/librte_hash/rte_fbk_hash.c @@ -122,7 +122,7 @@ rte_fbk_hash_create(const struct rte_fbk_hash_params *params) (params->entries_per_bucket == 0) || (params->entries_per_bucket > params->entries) || (params->entries > RTE_FBK_HASH_ENTRIES_MAX) || - (params->entries_per_bucket > RTE_FBK_HASH_ENTRIES_MAX)){ + (params->entries_per_bucket > RTE_FBK_HASH_ENTRIES_PER_BUCKET_MAX)){ rte_errno = EINVAL; return NULL; }