git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51bc66d
)
hash: fix check when creating fbk hash
author
Intel
<intel.com>
Wed, 19 Dec 2012 23:00:00 +0000
(
00:00
+0100)
committer
Thomas Monjalon
<thomas.monjalon@6wind.com>
Thu, 25 Jul 2013 13:23:27 +0000
(15:23 +0200)
Signed-off-by: Intel
lib/librte_hash/rte_fbk_hash.c
patch
|
blob
|
history
diff --git
a/lib/librte_hash/rte_fbk_hash.c
b/lib/librte_hash/rte_fbk_hash.c
index
8128dfb
..
4163c92
100644
(file)
--- 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;
}