git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
examples/ip_pipeline: avoid hash table create failure
[dpdk.git]
/
examples
/
ip_pipeline
/
pipeline
/
pipeline_flow_classification_be.c
diff --git
a/examples/ip_pipeline/pipeline/pipeline_flow_classification_be.c
b/examples/ip_pipeline/pipeline/pipeline_flow_classification_be.c
index
9846777
..
929d81c
100644
(file)
--- a/
examples/ip_pipeline/pipeline/pipeline_flow_classification_be.c
+++ b/
examples/ip_pipeline/pipeline/pipeline_flow_classification_be.c
@@
-499,7
+499,7
@@
static void *pipeline_fc_init(struct pipeline_params *params,
.key_mask = (p_fc->key_mask_present) ?
p_fc->key_mask : NULL,
.n_keys = p_fc->n_flows,
- .n_buckets =
p_fc->n_flows / 4
,
+ .n_buckets =
rte_align32pow2(p_fc->n_flows / 4)
,
.f_hash = hash_func[(p_fc->key_size / 8) - 1],
.seed = 0,
};