From patchwork Mon Aug 10 12:41:09 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Balasubramanian Manoharan X-Patchwork-Id: 52231 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by patches.linaro.org (Postfix) with ESMTPS id 546302152A for ; Mon, 10 Aug 2015 12:42:12 +0000 (UTC) Received: by labd1 with SMTP id d1sf17202018lab.0 for ; Mon, 10 Aug 2015 05:42:11 -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=OtbgOC6rjU0Cq29GjS87ZHzVaD8kCLbJFRI25hvodDI=; b=QPIO0IAbDqxLJ2AP4/Jqj7f/xb86PlJpTlJvbSLZXnKNwdnhft3wAweUDCD4agp3pd CxmInAJihi9V3BfDExXWBD+0DsnyfA5au2ruHR2eohVE3O9KEtEmX7T1W5Q5m8AJkKB9 CXfAThdoTtl7LxxuVQ5qTvu+DIJxSGPDI90ymaXLfIw1dEuMTb5jY0nyBz19tmyg3ilS rNqoCoURnTEQts9h9WBqxQ1YGWppgs275B1otwWc6nttL+1Ya6GTCS2dm6QbbXUjgZuo Dkao7eiHR1k4PxQOpnMzixY08lD/6LKkMyLjUrN4g8Yc4vN8JU0ICKmKXCbxV07ms1W+ mZXA== X-Gm-Message-State: ALoCoQlMrU8FPoJ2uULhAMC3bIz0ne/laDoBIYh6t0LgCPm6s/yxa/cYlFmGBy0GEZ+HcrKwO16S X-Received: by 10.152.6.103 with SMTP id z7mr6290338laz.8.1439210530863; Mon, 10 Aug 2015 05:42:10 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.87.164 with SMTP id az4ls553819lab.81.gmail; Mon, 10 Aug 2015 05:42:10 -0700 (PDT) X-Received: by 10.112.131.98 with SMTP id ol2mr20215512lbb.56.1439210530469; Mon, 10 Aug 2015 05:42:10 -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 j9si13992021lam.16.2015.08.10.05.42.10 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Aug 2015 05:42:10 -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 lahi9 with SMTP id i9so22416692lah.2 for ; Mon, 10 Aug 2015 05:42:10 -0700 (PDT) X-Received: by 10.152.28.193 with SMTP id d1mr6182324lah.72.1439210530040; Mon, 10 Aug 2015 05:42:10 -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 l6csp1910539lba; Mon, 10 Aug 2015 05:42:09 -0700 (PDT) X-Received: by 10.55.17.34 with SMTP id b34mr37469359qkh.97.1439210528700; Mon, 10 Aug 2015 05:42:08 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id b92si16967239qga.1.2015.08.10.05.42.07; Mon, 10 Aug 2015 05:42:08 -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 65CCD61E1F; Mon, 10 Aug 2015 12:42:07 +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_H3, RCVD_IN_MSPIKE_WL, 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 7102C61D71; 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 5086C61D91; Mon, 10 Aug 2015 12:42:00 +0000 (UTC) Received: from mail-pa0-f54.google.com (mail-pa0-f54.google.com [209.85.220.54]) by lists.linaro.org (Postfix) with ESMTPS id 373DB61D70 for ; Mon, 10 Aug 2015 12:41:39 +0000 (UTC) Received: by pawu10 with SMTP id u10so139936911paw.1 for ; Mon, 10 Aug 2015 05:41:38 -0700 (PDT) X-Received: by 10.68.69.108 with SMTP id d12mr44806109pbu.24.1439210498477; Mon, 10 Aug 2015 05:41:38 -0700 (PDT) Received: from localhost.localdomain ([122.166.219.57]) by smtp.gmail.com with ESMTPSA id hx7sm19806936pbc.84.2015.08.10.05.41.36 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 10 Aug 2015 05:41:37 -0700 (PDT) From: Balasubramanian Manoharan To: lng-odp@lists.linaro.org Date: Mon, 10 Aug 2015 18:11:09 +0530 Message-Id: <1439210472-15839-2-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: Classification patch Subject: [lng-odp] [API-NEXT PATCHv1 1/4] api: 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.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 changes the name of classification APIs for ODP consistency odp_cos_set_queue() is changed to odp_cos_queue_set() odp_cos_set_drop() is changed to odp_cos_drop_set() Adds the following getter functions odp_cos_queue() odp_cos_drop() Signed-off-by: Balasubramanian Manoharan --- include/odp/api/classification.h | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/include/odp/api/classification.h b/include/odp/api/classification.h index f597b26..2fdb767 100644 --- a/include/odp/api/classification.h +++ b/include/odp/api/classification.h @@ -120,7 +120,19 @@ int odp_cos_destroy(odp_cos_t cos_id); * @retval 0 on success * @retval <0 on failure */ -int odp_cos_set_queue(odp_cos_t cos_id, odp_queue_t queue_id); +int odp_cos_queue_set(odp_cos_t cos_id, odp_queue_t queue_id); + +/** +* Get the queue associated with the specific class-of-service +* +* @param[in] cos_id class-of-service instance. +* +* @retval queue_handle Queue handle associated with the +* given class-of-service +* +* @retval ODP_QUEUE_INVALID on failure +*/ +odp_queue_t odp_cos_queue(odp_cos_t cos_id); /** * Assign packet drop policy for specific class-of-service @@ -133,7 +145,17 @@ int odp_cos_set_queue(odp_cos_t cos_id, odp_queue_t queue_id); * * @note Optional. */ -int odp_cos_set_drop(odp_cos_t cos_id, odp_drop_e drop_policy); +int odp_cos_drop_set(odp_cos_t cos_id, odp_drop_e drop_policy); + +/** +* Get the drop policy configured for a specific class-of-service instance. +* +* @param[in] cos_id class-of-service instance. +* +* @retval Drop policy configured with the given +* class-of-service +*/ +odp_drop_e odp_cos_drop(odp_cos_t cos_id); /** * Request to override per-port class of service