From patchwork Wed Sep 23 00:41:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 54022 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by patches.linaro.org (Postfix) with ESMTPS id EC2A822B1E for ; Wed, 23 Sep 2015 00:43:09 +0000 (UTC) Received: by wicmn1 with SMTP id mn1sf16104135wic.1 for ; Tue, 22 Sep 2015 17:43:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:in-reply-to:references:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :mime-version:content-type:content-transfer-encoding:errors-to :sender:x-original-sender:x-original-authentication-results :mailing-list; bh=ZdulRr0Z5Hr/NjbS75Uazi+PZ1k1FxWKbFwhWFpzMuY=; b=deJTjDtsY8gks4GrpG5c7GT+frZ3KjQ3xNhqVvjsqkKbuABaPNJBSz6V2DDFhlfX+K inZ8eJnLrv7XXve3uEaLgJfEi4Wdzuy/SXzoVCT5XET3xrn8iBegf4a1rKkw+83b2uCg h7DgJlLPgvg2NBrEi4zqcKXMIwGY7rDzy0KkPbF6S9DoXdvY/SnlaaSr2MsfnsT27XmT FARmBDBVgYeBAWG1Y3h8NTbWQVOA9OgTXkwYEaL55T6nKskOdTJ+f/3rJfSUYWB+x2ie h5vUNhUExJDjVayS6F5fc/fQCPohy14AdWcM+mWDt3T8hIDdqUx2fTmRH/WHOArpvWtw XVLQ== X-Gm-Message-State: ALoCoQnplkB+wcm2zJ6KwlFLwGJdZuYaFWBaylf7Xo90mvkvqe5vQoB9CP/tBQQ2/uj768mqY9BA X-Received: by 10.25.163.202 with SMTP id m193mr103009lfe.9.1442968989213; Tue, 22 Sep 2015 17:43:09 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.152.83 with SMTP id a80ls87955lfe.96.gmail; Tue, 22 Sep 2015 17:43:09 -0700 (PDT) X-Received: by 10.25.156.130 with SMTP id f124mr3270995lfe.46.1442968989077; Tue, 22 Sep 2015 17:43:09 -0700 (PDT) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com. [209.85.215.47]) by mx.google.com with ESMTPS id f139si1602901lfb.79.2015.09.22.17.43.09 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 Sep 2015 17:43:09 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) client-ip=209.85.215.47; Received: by lahg1 with SMTP id g1so32923345lah.1 for ; Tue, 22 Sep 2015 17:43:08 -0700 (PDT) X-Received: by 10.152.23.97 with SMTP id l1mr4731362laf.56.1442968988925; Tue, 22 Sep 2015 17:43:08 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp790327lbq; Tue, 22 Sep 2015 17:43:08 -0700 (PDT) X-Received: by 10.50.77.15 with SMTP id o15mr21595216igw.5.1442968988011; Tue, 22 Sep 2015 17:43:08 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id a7si4408278iga.79.2015.09.22.17.43.07; Tue, 22 Sep 2015 17:43:07 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Received: by lists.linaro.org (Postfix, from userid 109) id 5F25461806; Wed, 23 Sep 2015 00:43:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id B12D96109A; Wed, 23 Sep 2015 00:42:42 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 3D94F61D7C; Wed, 23 Sep 2015 00:42:37 +0000 (UTC) Received: from mail-pa0-f42.google.com (mail-pa0-f42.google.com [209.85.220.42]) by lists.linaro.org (Postfix) with ESMTPS id 41CD2618E5 for ; Wed, 23 Sep 2015 00:42:10 +0000 (UTC) Received: by padhy16 with SMTP id hy16so23931909pad.1 for ; Tue, 22 Sep 2015 17:42:09 -0700 (PDT) X-Received: by 10.68.135.69 with SMTP id pq5mr34416426pbb.162.1442968929473; Tue, 22 Sep 2015 17:42:09 -0700 (PDT) Received: from Ubuntu15.localdomain ([70.35.39.2]) by smtp.gmail.com with ESMTPSA id w9sm4463998pbt.29.2015.09.22.17.42.07 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 22 Sep 2015 17:42:08 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org, maxim.uvarov@linaro.org Date: Tue, 22 Sep 2015 17:41:54 -0700 Message-Id: <1442968914-30179-3-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1442968914-30179-1-git-send-email-bill.fischofer@linaro.org> References: <1442968914-30179-1-git-send-email-bill.fischofer@linaro.org> X-Topics: Classification patch Subject: [lng-odp] [API-NEXT PATCH 3/3] validation: classification: Add init calls for queue parameters X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: bill.fischofer@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Add odp_queue_param_init() calls to test. This fixes Bug https://bugs.linaro.org/show_bug.cgi?id=1816 Signed-off-by: Bill Fischofer --- test/validation/classification/odp_classification_tests.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/validation/classification/odp_classification_tests.c b/test/validation/classification/odp_classification_tests.c index e60af91..69a71b1 100644 --- a/test/validation/classification/odp_classification_tests.c +++ b/test/validation/classification/odp_classification_tests.c @@ -306,6 +306,7 @@ int classification_suite_init(void) fprintf(stderr, "unable to destroy pool.\n"); return -1; } + odp_queue_param_init(&qparam); qparam.sched.prio = ODP_SCHED_PRIO_DEFAULT; qparam.sched.sync = ODP_SCHED_SYNC_ATOMIC; qparam.sched.group = ODP_SCHED_GROUP_ALL; @@ -388,6 +389,7 @@ void configure_cls_pmr_chain(void) cos_list[CLS_PMR_CHAIN_SRC] = odp_cos_create(cosname); CU_ASSERT_FATAL(cos_list[CLS_PMR_CHAIN_SRC] != ODP_COS_INVALID); + odp_queue_param_init(&qparam); qparam.sched.prio = ODP_SCHED_PRIO_NORMAL; qparam.sched.sync = ODP_SCHED_SYNC_NONE; qparam.sched.group = ODP_SCHED_GROUP_ALL; @@ -495,6 +497,7 @@ void configure_pktio_default_cos(void) cos_list[CLS_DEFAULT] = odp_cos_create(cosname); CU_ASSERT_FATAL(cos_list[CLS_DEFAULT] != ODP_COS_INVALID); + odp_queue_param_init(&qparam); qparam.sched.prio = ODP_SCHED_PRIO_DEFAULT; qparam.sched.sync = ODP_SCHED_SYNC_NONE; qparam.sched.group = ODP_SCHED_GROUP_ALL; @@ -536,6 +539,7 @@ void configure_pktio_error_cos(void) char queuename[ODP_QUEUE_NAME_LEN]; char cosname[ODP_COS_NAME_LEN]; + odp_queue_param_init(&qparam); qparam.sched.prio = ODP_SCHED_PRIO_LOWEST; qparam.sched.sync = ODP_SCHED_SYNC_NONE; qparam.sched.group = ODP_SCHED_GROUP_ALL; @@ -622,6 +626,7 @@ void configure_cos_with_l2_priority(void) for (i = 0; i < CLS_L2_QOS_MAX; i++) qos_tbl[i] = 0; + odp_queue_param_init(&qparam); qparam.sched.sync = ODP_SCHED_SYNC_NONE; qparam.sched.group = ODP_SCHED_GROUP_ALL; for (i = 0; i < num_qos; i++) { @@ -689,6 +694,7 @@ void configure_pmr_cos(void) cos_list[CLS_PMR] = odp_cos_create(cosname); CU_ASSERT_FATAL(cos_list[CLS_PMR] != ODP_COS_INVALID); + odp_queue_param_init(&qparam); qparam.sched.prio = ODP_SCHED_PRIO_HIGHEST; qparam.sched.sync = ODP_SCHED_SYNC_NONE; qparam.sched.group = ODP_SCHED_GROUP_ALL; @@ -760,6 +766,7 @@ void configure_pktio_pmr_match_set_cos(void) cos_list[CLS_PMR_SET] = odp_cos_create(cosname); CU_ASSERT_FATAL(cos_list[CLS_PMR_SET] != ODP_COS_INVALID); + odp_queue_param_init(&qparam); qparam.sched.prio = ODP_SCHED_PRIO_HIGHEST; qparam.sched.sync = ODP_SCHED_SYNC_NONE; qparam.sched.group = ODP_SCHED_GROUP_ALL;