From patchwork Tue Aug 11 12:10:42 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Balasubramanian Manoharan X-Patchwork-Id: 52311 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by patches.linaro.org (Postfix) with ESMTPS id 2189B22FEC for ; Tue, 11 Aug 2015 12:19:35 +0000 (UTC) Received: by lbck9 with SMTP id k9sf20220388lbc.0 for ; Tue, 11 Aug 2015 05:19:34 -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=chpuDUAX24aOVDIcyoPPB7lP8DvdGvA84ZSB8wlsWus=; b=E19eQq5o3gV1VsJ7JMviF804GigtxWrAMn4+qhxNwr3bB6hHYv43xO7lKRZSsY464n kwv8ScXtUtxFYviY89OWOdtH8XkNMBgFTsb9tMJE/UYGXilMK47mOwEHbrVndseC2lh9 HdPZmFURb+375MocCIjG7WY9TWwfKDkbrdE0TuwMAd7KDaBK8IVJEKuiLfzeVWpUh298 Ew4Vx4VNMnohI9mKQKJdLioQrxu6E7j4qdbWKRC9J2Q9L0kmLk/mto+AHbcsoqu66KvQ eDbPa/giNHU5j6vF7mbUsxHwnhS/rVag5FwrQ+QU1hjqZELGyFJnWPgHysrYxl/kLygo SKyQ== X-Gm-Message-State: ALoCoQm/poGzjXOElFoCIVPpq3ubV1SUl7cbDcgIinG+QoUqtReBfiPVzi1ro8TrRF7vM0b6qtrL X-Received: by 10.152.28.100 with SMTP id a4mr7894324lah.4.1439295574035; Tue, 11 Aug 2015 05:19:34 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.21.163 with SMTP id w3ls404145lae.21.gmail; Tue, 11 Aug 2015 05:19:33 -0700 (PDT) X-Received: by 10.112.40.51 with SMTP id u19mr25892276lbk.44.1439295573884; Tue, 11 Aug 2015 05:19:33 -0700 (PDT) Received: from mail-la0-f43.google.com (mail-la0-f43.google.com. [209.85.215.43]) by mx.google.com with ESMTPS id du2si1221421lac.176.2015.08.11.05.19.33 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Aug 2015 05:19:33 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.43 as permitted sender) client-ip=209.85.215.43; Received: by lagz9 with SMTP id z9so69814597lag.3 for ; Tue, 11 Aug 2015 05:19:33 -0700 (PDT) X-Received: by 10.152.203.134 with SMTP id kq6mr26189053lac.106.1439295573730; Tue, 11 Aug 2015 05:19:33 -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.7.198 with SMTP id l6csp2492216lba; Tue, 11 Aug 2015 05:19:32 -0700 (PDT) X-Received: by 10.107.170.77 with SMTP id t74mr29960229ioe.107.1439295572076; Tue, 11 Aug 2015 05:19:32 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id v89si1110809ioi.148.2015.08.11.05.19.31; Tue, 11 Aug 2015 05:19:32 -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 1209461C6D; Tue, 11 Aug 2015 12:19:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from ip-10-142-244-252.ec2.internal (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 245DC61E73; Tue, 11 Aug 2015 12:16:47 +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 193C361C68; Tue, 11 Aug 2015 12:16:35 +0000 (UTC) Received: from mail-pa0-f47.google.com (mail-pa0-f47.google.com [209.85.220.47]) by lists.linaro.org (Postfix) with ESMTPS id 4265461E73 for ; Tue, 11 Aug 2015 12:11:05 +0000 (UTC) Received: by pacgr6 with SMTP id gr6so49792199pac.2 for ; Tue, 11 Aug 2015 05:11:04 -0700 (PDT) X-Received: by 10.68.168.161 with SMTP id zx1mr56435154pbb.35.1439295064613; Tue, 11 Aug 2015 05:11:04 -0700 (PDT) Received: from localhost.localdomain ([122.166.219.57]) by smtp.gmail.com with ESMTPSA id oc2sm2469846pdb.45.2015.08.11.05.11.03 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 11 Aug 2015 05:11:04 -0700 (PDT) From: Balasubramanian Manoharan To: lng-odp@lists.linaro.org Date: Tue, 11 Aug 2015 17:40:42 +0530 Message-Id: <1439295042-24381-5-git-send-email-bala.manoharan@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1439295042-24381-1-git-send-email-bala.manoharan@linaro.org> References: <1439295042-24381-1-git-send-email-bala.manoharan@linaro.org> X-Topics: Classification patch Subject: [lng-odp] [API-NEXT PATCHv2 4/4] validation: classification: queue and drop policy API name change 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: bala.manoharan@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.43 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 validation support for API name change from odp_cos_set_drop() to odp_cos_drop_set() and odp_cos_set_queue() to odp_cos_queue_set() Fixes: https://bugs.linaro.org/show_bug.cgi?id=1711 Signed-off-by: Balasubramanian Manoharan --- test/validation/classification/odp_classification_basic.c | 6 +++--- test/validation/classification/odp_classification_tests.c | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/test/validation/classification/odp_classification_basic.c b/test/validation/classification/odp_classification_basic.c index 99202ee..36c5286 100644 --- a/test/validation/classification/odp_classification_basic.c +++ b/test/validation/classification/odp_classification_basic.c @@ -81,7 +81,7 @@ static void classification_test_cos_set_queue(void) queue_cos = odp_queue_create(queuename, ODP_QUEUE_TYPE_SCHED, &qparam); - retval = odp_cos_set_queue(cos_queue, queue_cos); + retval = odp_cos_queue_set(cos_queue, queue_cos); CU_ASSERT(retval == 0); odp_cos_destroy(cos_queue); odp_queue_destroy(queue_cos); @@ -96,9 +96,9 @@ static void classification_test_cos_set_drop(void) cos_drop = odp_cos_create(cosname); CU_ASSERT_FATAL(cos_drop != ODP_COS_INVALID); - retval = odp_cos_set_drop(cos_drop, ODP_COS_DROP_POOL); + retval = odp_cos_drop_set(cos_drop, ODP_COS_DROP_POOL); CU_ASSERT(retval == 0); - retval = odp_cos_set_drop(cos_drop, ODP_COS_DROP_NEVER); + retval = odp_cos_drop_set(cos_drop, ODP_COS_DROP_NEVER); CU_ASSERT(retval == 0); odp_cos_destroy(cos_drop); } diff --git a/test/validation/classification/odp_classification_tests.c b/test/validation/classification/odp_classification_tests.c index ecf9db0..2760401 100644 --- a/test/validation/classification/odp_classification_tests.c +++ b/test/validation/classification/odp_classification_tests.c @@ -390,7 +390,7 @@ void configure_cls_pmr_chain(void) &qparam); CU_ASSERT_FATAL(queue_list[CLS_PMR_CHAIN_SRC] != ODP_QUEUE_INVALID); - retval = odp_cos_set_queue(cos_list[CLS_PMR_CHAIN_SRC], + retval = odp_cos_queue_set(cos_list[CLS_PMR_CHAIN_SRC], queue_list[CLS_PMR_CHAIN_SRC]); CU_ASSERT(retval == 0); @@ -408,7 +408,7 @@ void configure_cls_pmr_chain(void) &qparam); CU_ASSERT_FATAL(queue_list[CLS_PMR_CHAIN_DST] != ODP_QUEUE_INVALID); - retval = odp_cos_set_queue(cos_list[CLS_PMR_CHAIN_DST], + retval = odp_cos_queue_set(cos_list[CLS_PMR_CHAIN_DST], queue_list[CLS_PMR_CHAIN_DST]); parse_ipv4_string(CLS_PMR_CHAIN_SADDR, &addr, &mask); @@ -494,7 +494,7 @@ void configure_pktio_default_cos(void) ODP_QUEUE_TYPE_SCHED, &qparam); CU_ASSERT_FATAL(queue_list[CLS_DEFAULT] != ODP_QUEUE_INVALID); - retval = odp_cos_set_queue(cos_list[CLS_DEFAULT], + retval = odp_cos_queue_set(cos_list[CLS_DEFAULT], queue_list[CLS_DEFAULT]); CU_ASSERT(retval == 0); @@ -541,7 +541,7 @@ void configure_pktio_error_cos(void) cos_list[CLS_ERROR] = odp_cos_create(cosname); CU_ASSERT_FATAL(cos_list[CLS_ERROR] != ODP_COS_INVALID); - retval = odp_cos_set_queue(cos_list[CLS_ERROR], queue_list[CLS_ERROR]); + retval = odp_cos_queue_set(cos_list[CLS_ERROR], queue_list[CLS_ERROR]); CU_ASSERT(retval == 0); retval = odp_pktio_error_cos_set(pktio_loop, cos_list[CLS_ERROR]); @@ -628,7 +628,7 @@ void configure_cos_with_l2_priority(void) &qparam); CU_ASSERT_FATAL(queue_tbl[i] != ODP_QUEUE_INVALID); queue_list[CLS_L2_QOS_0 + i] = queue_tbl[i]; - retval = odp_cos_set_queue(cos_tbl[i], queue_tbl[i]); + retval = odp_cos_queue_set(cos_tbl[i], queue_tbl[i]); CU_ASSERT(retval == 0); qos_tbl[i] = i; } @@ -690,7 +690,7 @@ void configure_pmr_cos(void) &qparam); CU_ASSERT_FATAL(queue_list[CLS_PMR] != ODP_QUEUE_INVALID); - retval = odp_cos_set_queue(cos_list[CLS_PMR], + retval = odp_cos_queue_set(cos_list[CLS_PMR], queue_list[CLS_PMR]); CU_ASSERT(retval == 0); @@ -761,7 +761,7 @@ void configure_pktio_pmr_match_set_cos(void) &qparam); CU_ASSERT_FATAL(queue_list[CLS_PMR_SET] != ODP_QUEUE_INVALID); - retval = odp_cos_set_queue(cos_list[CLS_PMR_SET], + retval = odp_cos_queue_set(cos_list[CLS_PMR_SET], queue_list[CLS_PMR_SET]); CU_ASSERT(retval == 0);