From patchwork Tue Aug 11 12:10:40 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Balasubramanian Manoharan X-Patchwork-Id: 52310 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by patches.linaro.org (Postfix) with ESMTPS id 4B7BD22FEC for ; Tue, 11 Aug 2015 12:19:09 +0000 (UTC) Received: by lagz9 with SMTP id z9sf52674442lag.3 for ; Tue, 11 Aug 2015 05:19:08 -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=C526Dr9MHCwjI6bOv5kvJG6FUegx78/5Wmv8O0/uau4=; b=FvcB5tIjXWPUWMINJVO/ATLXZ4oTU1WKmyEI0MdW6kdCtZdecNZ1OwBzvW2arNYSMe X/03420imSccW0AcSFVFWwE710EeDVOUx0VgByO6ZqWUYuKhWM1GjX/VFC6G/uo2tLtj QrYWuNFtBJddpxgOgr+5IIBJyyxVYv1I+eCw0CYWJ7kEJo4AxofAP7CeYo2UD4fFPm0Y 46sw2Dlc69kQwNvtuCcL8+G4wYYjM3X91K1b6AbI/aNom/Cm5RdVBRNr5PuO55XOygz+ HeaAaHtr8SkZcpaIe2K4FSFmu0lkJbdDB5AIyrgkndocb/d/+btxhnDSV8Reif38pGG1 YSDw== X-Gm-Message-State: ALoCoQn2g0vrgSaCjTJFImmcfzNvVvoeovTFCID8FHEOWt0T59pjG3avYugyWmrTf6iLiL7ai02r X-Received: by 10.152.45.101 with SMTP id l5mr6220914lam.7.1439295548070; Tue, 11 Aug 2015 05:19:08 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.204.40 with SMTP id kv8ls794943lac.94.gmail; Tue, 11 Aug 2015 05:19:07 -0700 (PDT) X-Received: by 10.112.198.100 with SMTP id jb4mr25577776lbc.97.1439295547772; Tue, 11 Aug 2015 05:19:07 -0700 (PDT) Received: from mail-lb0-f170.google.com (mail-lb0-f170.google.com. [209.85.217.170]) by mx.google.com with ESMTPS id qx9si1231657lbb.116.2015.08.11.05.19.07 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Aug 2015 05:19:07 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.170 as permitted sender) client-ip=209.85.217.170; Received: by lbbpu9 with SMTP id pu9so84678575lbb.3 for ; Tue, 11 Aug 2015 05:19:07 -0700 (PDT) X-Received: by 10.112.129.137 with SMTP id nw9mr19827129lbb.19.1439295547668; Tue, 11 Aug 2015 05:19:07 -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 l6csp2491977lba; Tue, 11 Aug 2015 05:19:06 -0700 (PDT) X-Received: by 10.107.137.87 with SMTP id l84mr32327493iod.119.1439295546071; Tue, 11 Aug 2015 05:19:06 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id l10si1117984igx.31.2015.08.11.05.19.05; Tue, 11 Aug 2015 05:19:06 -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 03E7661B5F; Tue, 11 Aug 2015 12:19:04 +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 CFFBE61E6F; Tue, 11 Aug 2015 12:16:44 +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 CC08C61C9C; Tue, 11 Aug 2015 12:16:33 +0000 (UTC) Received: from mail-pd0-f176.google.com (mail-pd0-f176.google.com [209.85.192.176]) by lists.linaro.org (Postfix) with ESMTPS id A389061E6F for ; Tue, 11 Aug 2015 12:11:01 +0000 (UTC) Received: by pdrh1 with SMTP id h1so65075828pdr.0 for ; Tue, 11 Aug 2015 05:11:00 -0700 (PDT) X-Received: by 10.70.98.131 with SMTP id ei3mr56620247pdb.154.1439295060839; Tue, 11 Aug 2015 05:11:00 -0700 (PDT) Received: from localhost.localdomain ([122.166.219.57]) by smtp.gmail.com with ESMTPSA id oc2sm2469846pdb.45.2015.08.11.05.10.59 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 11 Aug 2015 05:11:00 -0700 (PDT) From: Balasubramanian Manoharan To: lng-odp@lists.linaro.org Date: Tue, 11 Aug 2015 17:40:40 +0530 Message-Id: <1439295042-24381-3-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: patch Subject: [lng-odp] [API-NEXT PATCHv2 2/4] example: classifier: 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.217.170 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 API name change from odp_cos_set_queue() to odp_cos_queue_set() Fixes: https://bugs.linaro.org/show_bug.cgi?id=1711 Signed-off-by: Balasubramanian Manoharan --- example/classifier/odp_classifier.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/classifier/odp_classifier.c b/example/classifier/odp_classifier.c index 3a16279..c7c650b 100644 --- a/example/classifier/odp_classifier.c +++ b/example/classifier/odp_classifier.c @@ -329,7 +329,7 @@ static void configure_default_queue(odp_pktio_t pktio, appl_args_t *args) queue_default = odp_queue_create(queue_name, ODP_QUEUE_TYPE_SCHED, &qparam); - odp_cos_set_queue(cos_default, queue_default); + odp_cos_queue_set(cos_default, queue_default); odp_pktio_default_cos_set(pktio, cos_default); stats[args->policy_count].cos = cos_default; /* add default queue to global stats */ @@ -364,7 +364,7 @@ static void configure_cos_queue(odp_pktio_t pktio, appl_args_t *args) stats->queue = odp_queue_create(queue_name, ODP_QUEUE_TYPE_SCHED, &qparam); - odp_cos_set_queue(stats->cos, stats->queue); + odp_cos_queue_set(stats->cos, stats->queue); odp_pktio_pmr_cos(stats->pmr, pktio, stats->cos); odp_atomic_init_u64(&stats->packet_count, 0);