Ok, you added that init() inside that commit of api-next:

commit 8da0ee0b2a43bfdd5b0d37d2d2a10a45bbf2d7bd
Author: Balasubramanian Manoharan <bala.manoha...@linaro.org>
Date:   Thu Dec 3 16:16:06 2015 +0530

    example: classifier: add odp_cls_cos_pool_set() api

    Adds packet pool to CoS using odp_cls_cos_pool_set() api.

    Signed-off-by: Balasubramanian Manoharan <bala.manoha...@linaro.org>
    Reviewed-by: Petri Savolainen <petri.savolai...@nokia.com>
    Reviewed-and-tested-by: Bill Fischofer <bill.fischo...@linaro.org>
    Signed-off-by: Maxim Uvarov <maxim.uva...@linaro.org>

That is why it does not fail on api-next. So we can apply that change now to master as bugfix
and port all commit later, closer to next release.

Maxim.

On 12/11/2015 12:16, Balasubramanian Manoharan wrote:
Fixes crash caused by queue param not being initialized.

Signed-off-by: Balasubramanian Manoharan <bala.manoha...@linaro.org>
---
  example/classifier/odp_classifier.c | 1 +
  1 file changed, 1 insertion(+)

diff --git a/example/classifier/odp_classifier.c 
b/example/classifier/odp_classifier.c
index c8f264f..81e6bf0 100644
--- a/example/classifier/odp_classifier.c
+++ b/example/classifier/odp_classifier.c
@@ -401,6 +401,7 @@ static void configure_cos_queue(odp_pktio_t pktio, 
appl_args_t *args)
                };
stats->pmr = odp_pmr_create(&match);
+               odp_queue_param_init(&qparam);
                qparam.sched.prio = i % odp_schedule_num_prio();
                qparam.sched.sync = ODP_SCHED_SYNC_NONE;
                qparam.sched.group = ODP_SCHED_GROUP_ALL;

_______________________________________________
lng-odp mailing list
lng-odp@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to