From patchwork Mon Aug 10 12:41:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Balasubramanian Manoharan X-Patchwork-Id: 52232 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by patches.linaro.org (Postfix) with ESMTPS id 09BB02152A for ; Mon, 10 Aug 2015 12:42:39 +0000 (UTC) Received: by labia3 with SMTP id ia3sf39244352lab.1 for ; Mon, 10 Aug 2015 05:42:38 -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=nnf69R9ZeMMh5AUkBw7crlOS/RnRgLtLp1msCOnfvzE=; b=RsLYHy1lRbPiIUbSHQHOOl3WH4rx6xlWNE9npD5tbM2B8T1aKQX2mOZCuGovlKAmuQ O+Hoy7oW07UtKVXJEZpTN7NWVQs4+MBuzq5GGw2ifEVgaxtbkHE41/9Jk+P9uDrxIdol e5Fs3l1GUzNt69TqGNNWJpcNiOunidJy5ATX/ic9Omh1FfE4vneclsHLrcy3MHcWXUak wkRW13uwHNuNBffUUAUHIL85eLlkEYh5T6yIs6pSyKHZjxBHYTLLvoK76be8xu6BKiJT +lDnEndbPvhBcm6CICtXxAuKpmBbz671Cnw2BTXF9P6PTxStnbwH0hobtzOu0FjPhY7L fN3g== X-Gm-Message-State: ALoCoQk7LN4NY1TS2zlDM90vdQCZg43cynjK1Gw5ZKiwhtUVt2a1lvio2rYY0ISsQ3i2D17IJRqy X-Received: by 10.152.1.164 with SMTP id 4mr269980lan.2.1439210557950; Mon, 10 Aug 2015 05:42:37 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.45.73 with SMTP id k9ls678259lam.66.gmail; Mon, 10 Aug 2015 05:42:37 -0700 (PDT) X-Received: by 10.152.29.6 with SMTP id f6mr19402345lah.85.1439210557545; Mon, 10 Aug 2015 05:42:37 -0700 (PDT) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com. [209.85.215.45]) by mx.google.com with ESMTPS id y12si13966122lbm.75.2015.08.10.05.42.37 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Aug 2015 05:42:37 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) client-ip=209.85.215.45; Received: by lagz9 with SMTP id z9so52771448lag.3 for ; Mon, 10 Aug 2015 05:42:37 -0700 (PDT) X-Received: by 10.152.22.99 with SMTP id c3mr20462165laf.32.1439210557430; Mon, 10 Aug 2015 05:42:37 -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 l6csp1910761lba; Mon, 10 Aug 2015 05:42:36 -0700 (PDT) X-Received: by 10.55.15.95 with SMTP id z92mr17105892qkg.47.1439210556106; Mon, 10 Aug 2015 05:42:36 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 140si25181608qhx.55.2015.08.10.05.42.35; Mon, 10 Aug 2015 05:42:36 -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 4517561E10; Mon, 10 Aug 2015 12:42:35 +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 ECB6A61D93; Mon, 10 Aug 2015 12:42:03 +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 1B59961D80; Mon, 10 Aug 2015 12:42:01 +0000 (UTC) Received: from mail-pd0-f175.google.com (mail-pd0-f175.google.com [209.85.192.175]) by lists.linaro.org (Postfix) with ESMTPS id 59B7661D71 for ; Mon, 10 Aug 2015 12:41:42 +0000 (UTC) Received: by pdco4 with SMTP id o4so71321937pdc.3 for ; Mon, 10 Aug 2015 05:41:41 -0700 (PDT) X-Received: by 10.70.45.134 with SMTP id n6mr44597882pdm.124.1439210501630; Mon, 10 Aug 2015 05:41:41 -0700 (PDT) Received: from localhost.localdomain ([122.166.219.57]) by smtp.gmail.com with ESMTPSA id hx7sm19806936pbc.84.2015.08.10.05.41.39 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 10 Aug 2015 05:41:41 -0700 (PDT) From: Balasubramanian Manoharan To: lng-odp@lists.linaro.org Date: Mon, 10 Aug 2015 18:11:10 +0530 Message-Id: <1439210472-15839-3-git-send-email-bala.manoharan@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1439210472-15839-1-git-send-email-bala.manoharan@linaro.org> References: <1439210472-15839-1-git-send-email-bala.manoharan@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv1 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.215.45 as permitted sender) smtp.mail=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() 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);