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 <[email protected]>
---
 helper/cuckootable.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/helper/cuckootable.c b/helper/cuckootable.c
index 80ff498..0d46300 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);
-- 
2.7.4

Reply via email to