From patchwork Tue Aug 11 12:10:39 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Balasubramanian Manoharan X-Patchwork-Id: 52308 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by patches.linaro.org (Postfix) with ESMTPS id 4E1AB22FEC for ; Tue, 11 Aug 2015 12:17:50 +0000 (UTC) Received: by wilj18 with SMTP id j18sf48385574wil.0 for ; Tue, 11 Aug 2015 05:17:49 -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=LXVFt6EyuTiW4QVCG4guo/x/cpTSuS1wB1o6jqARSkq4XK6XDS9kRfc0zMYUSsUVTX uS3VP4vjDfG1vAvhy/yU1kS3FEjZxES2+pyuo9GAuyUKb/rZsgEHEDd7alXWCEOkm6Ju wgNiyFBRiNdengpUp/z7UyG7wiAZ7IV5/Ru24rJewFKLM4NrNELXL1V8OaFX7z+n8I02 bgpT5TzlzJ0MvyT3QVFEzqc9toT4sADBX48RXFaQ6rGxkpzySN7JX/ecnVzB7sqwZyEk 2cEZw3Wm7Xa8bO0363gesbDZZ/6QKKx+6yk/V9B492Om0oq2F1cgOUVpDq7btmPv7psC UWWw== X-Gm-Message-State: ALoCoQk99H3lJNOCtRRbLkznAlDK7c93iaTGSFf/b4gFbARrISQ48Aca2IX74I07bDym42rucy9Q X-Received: by 10.194.93.198 with SMTP id cw6mr7914561wjb.3.1439295469559; Tue, 11 Aug 2015 05:17:49 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.26.65 with SMTP id j1ls103134lag.39.gmail; Tue, 11 Aug 2015 05:17:49 -0700 (PDT) X-Received: by 10.112.48.37 with SMTP id i5mr369653lbn.57.1439295469265; Tue, 11 Aug 2015 05:17:49 -0700 (PDT) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com. [209.85.217.178]) by mx.google.com with ESMTPS id ds10si1227205lbc.133.2015.08.11.05.17.49 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Aug 2015 05:17:49 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) client-ip=209.85.217.178; Received: by lbcbn3 with SMTP id bn3so17476369lbc.2 for ; Tue, 11 Aug 2015 05:17:49 -0700 (PDT) X-Received: by 10.112.126.101 with SMTP id mx5mr26345514lbb.35.1439295468969; Tue, 11 Aug 2015 05:17:48 -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 l6csp2491273lba; Tue, 11 Aug 2015 05:17:47 -0700 (PDT) X-Received: by 10.107.25.11 with SMTP id 11mr25004681ioz.39.1439295467236; Tue, 11 Aug 2015 05:17:47 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id l75si1118873iod.39.2015.08.11.05.17.46; Tue, 11 Aug 2015 05:17:47 -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 4C98761CC6; Tue, 11 Aug 2015 12:17:46 +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 253F661E31; Tue, 11 Aug 2015 12:16:39 +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 0F9CF61CE3; Tue, 11 Aug 2015 12:16:32 +0000 (UTC) Received: from mail-pa0-f44.google.com (mail-pa0-f44.google.com [209.85.220.44]) by lists.linaro.org (Postfix) with ESMTPS id 97B0E61E6A for ; Tue, 11 Aug 2015 12:10:59 +0000 (UTC) Received: by pawu10 with SMTP id u10so163225003paw.1 for ; Tue, 11 Aug 2015 05:10:59 -0700 (PDT) X-Received: by 10.66.160.40 with SMTP id xh8mr26757313pab.10.1439295058885; Tue, 11 Aug 2015 05:10:58 -0700 (PDT) Received: from localhost.localdomain ([122.166.219.57]) by smtp.gmail.com with ESMTPSA id oc2sm2469846pdb.45.2015.08.11.05.10.57 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 11 Aug 2015 05:10:58 -0700 (PDT) From: Balasubramanian Manoharan To: lng-odp@lists.linaro.org Date: Tue, 11 Aug 2015 17:40:39 +0530 Message-Id: <1439295042-24381-2-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 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.178 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