From patchwork Tue Aug 11 12:07:46 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Balasubramanian Manoharan X-Patchwork-Id: 52307 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by patches.linaro.org (Postfix) with ESMTPS id C83E122FEC for ; Tue, 11 Aug 2015 12:16:40 +0000 (UTC) Received: by wilj18 with SMTP id j18sf48376691wil.0 for ; Tue, 11 Aug 2015 05:16:40 -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=WIphSB+9ZgSnCT93lfezkdxq1uyKs7ek1tRRhZPpj2Q=; b=EZ37N6N8dVwxsFXjEd8FCXBXeY+TIktPWgD2ltzIwt5fgdgEk2V7K3h5hP96Td72QP kFMOAJDw0F+0MHx8mTe3FXv5IHylYLVImBfWzk8gBHhINwwjPHREVmr+AQ4lD86T9iV2 acM1BCIJlG4AeCD1AY4GsSOH7fauAp06KeevxtpRFsDxXgbmm322JgvuP8LYZZ/b6WwM lGRekwJICBBOfVqecEV7kjMkfLBcq6fX17CdmFsamXr0HoNEayNLrMiriNP2czxqzP4m VRJQzgD9vvWV1gvBN8v1WUzkKGHXW029Bn/09G4f2ueiDAVhjA64r4bTpZ1aXMGbDLyf XoHQ== X-Gm-Message-State: ALoCoQmuk4hCLt5gqIpnIQ8+KU+7BXwz5dktgoTpmY6C9TAtQEh9DbGlEVnRZ0pEsUEOtzwGm30Z X-Received: by 10.152.9.99 with SMTP id y3mr7897171laa.10.1439295400022; Tue, 11 Aug 2015 05:16:40 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.27.65 with SMTP id r1ls242975lag.31.gmail; Tue, 11 Aug 2015 05:16:39 -0700 (PDT) X-Received: by 10.152.22.168 with SMTP id e8mr25896269laf.40.1439295399874; Tue, 11 Aug 2015 05:16:39 -0700 (PDT) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com. [209.85.217.171]) by mx.google.com with ESMTPS id jj4si1234300lbc.66.2015.08.11.05.16.39 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Aug 2015 05:16:39 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) client-ip=209.85.217.171; Received: by lbbtg9 with SMTP id tg9so5004999lbb.1 for ; Tue, 11 Aug 2015 05:16:39 -0700 (PDT) X-Received: by 10.152.5.228 with SMTP id v4mr25793605lav.36.1439295399777; Tue, 11 Aug 2015 05:16:39 -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 l6csp2490338lba; Tue, 11 Aug 2015 05:16:38 -0700 (PDT) X-Received: by 10.50.112.229 with SMTP id it5mr18406123igb.46.1439295397933; Tue, 11 Aug 2015 05:16:37 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id f30si1105203iod.136.2015.08.11.05.16.37; Tue, 11 Aug 2015 05:16:37 -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 E11B861D47; Tue, 11 Aug 2015 12:16:36 +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 CC02A61B57; Tue, 11 Aug 2015 12:15: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 AD78D61D47; Tue, 11 Aug 2015 12:15:42 +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 610B761E61 for ; Tue, 11 Aug 2015 12:08:04 +0000 (UTC) Received: by pdbfa8 with SMTP id fa8so42865891pdb.1 for ; Tue, 11 Aug 2015 05:08:03 -0700 (PDT) X-Received: by 10.70.135.67 with SMTP id pq3mr56275692pdb.8.1439294883655; Tue, 11 Aug 2015 05:08:03 -0700 (PDT) Received: from localhost.localdomain ([122.166.219.57]) by smtp.gmail.com with ESMTPSA id mw3sm2449650pdb.76.2015.08.11.05.08.01 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 11 Aug 2015 05:08:03 -0700 (PDT) From: Balasubramanian Manoharan To: lng-odp@lists.linaro.org Date: Tue, 11 Aug 2015 17:37:46 +0530 Message-Id: <1439294869-24209-2-git-send-email-bala.manoharan@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1439294869-24209-1-git-send-email-bala.manoharan@linaro.org> References: <1439294869-24209-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.217.171 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 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() Fixes: https://bugs.linaro.org/show_bug.cgi?id=1711 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