Message ID | 1491538024-112904-2-git-send-email-honnappa.nagarahalli@linaro.org |
---|---|
State | Accepted |
Commit | 867d8fc93d074005b52375995b9beed4a896c1ed |
Headers | show |
Series | [1/2] add queue size param and related capability | expand |
On Thu, Apr 6, 2017 at 11:07 PM, Honnappa Nagarahalli < honnappa.nagarahalli@linaro.org> wrote: > 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> > --- > 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 > >
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);
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> --- helper/cuckootable.c | 1 + 1 file changed, 1 insertion(+) -- 2.7.4