aboutsummaryrefslogtreecommitdiff
path: root/helper
diff options
context:
space:
mode:
authorHonnappa Nagarahalli <honnappa.nagarahalli@linaro.org>2017-04-06 23:07:04 -0500
committerMaxim Uvarov <maxim.uvarov@linaro.org>2017-06-16 16:51:10 +0300
commit867d8fc93d074005b52375995b9beed4a896c1ed (patch)
treeccb8cf43759d13e7e561d406df1216c654dd360d /helper
parent87b108d54a697b0c3704342ec7b4d484d04dfdbb (diff)
helper: cuckoo: add queue size config to cuckoo table
Some queue implementations in ODP take queue size input. Cuckoo table is modified to provide the queue size input while creating the queue. Signed-off-by: Honnappa Nagarahalli <honnappa.nagarahalli@linaro.org> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'helper')
-rw-r--r--helper/cuckootable.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/helper/cuckootable.c b/helper/cuckootable.c
index 80ff49893..0d46300e0 100644
--- a/helper/cuckootable.c
+++ b/helper/cuckootable.c
@@ -256,6 +256,7 @@ odph_cuckoo_table_create(
/* initialize free_slots queue */
odp_queue_param_init(&qparam);
qparam.type = ODP_QUEUE_TYPE_PLAIN;
+ qparam.size = capacity;
snprintf(queue_name, sizeof(queue_name), "fs_%s", name);
queue = odp_queue_create(queue_name, &qparam);