From patchwork Wed Dec 16 09:28:52 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Balasubramanian Manoharan X-Patchwork-Id: 58493 Delivered-To: patch@linaro.org Received: by 10.112.89.199 with SMTP id bq7csp581051lbb; Wed, 16 Dec 2015 01:37:59 -0800 (PST) X-Received: by 10.140.231.213 with SMTP id b204mr53226440qhc.63.1450258679833; Wed, 16 Dec 2015 01:37:59 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id m90si5814059qkh.121.2015.12.16.01.37.59; Wed, 16 Dec 2015 01:37:59 -0800 (PST) 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; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 6BB5A61CCD; Wed, 16 Dec 2015 09:37:59 +0000 (UTC) Authentication-Results: lists.linaro.org; dkim=fail reason="verification failed; unprotected key" header.d=linaro.org header.i=@linaro.org header.b=SiB4jnTu; dkim-adsp=none (unprotected policy); dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 189AC61D2E; Wed, 16 Dec 2015 09:31:36 +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 D607061CEA; Wed, 16 Dec 2015 09:31:32 +0000 (UTC) Received: from mail-ig0-f181.google.com (mail-ig0-f181.google.com [209.85.213.181]) by lists.linaro.org (Postfix) with ESMTPS id 38FDE618BF for ; Wed, 16 Dec 2015 09:29:18 +0000 (UTC) Received: by mail-ig0-f181.google.com with SMTP id to4so56427911igc.0 for ; Wed, 16 Dec 2015 01:29:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=cOnDCIRTzNMZwayUy9tv+N+c4SmL9C89Z9byOcw35Hg=; b=SiB4jnTub35MH8wY5neIzKI80tjKepDUUK9kyeuq1/ogGo7vgwp8Vk+qAVA4iL5J7l c08G9HRyluQ1aBmei4Xw215h+Fv3B7S8L1Mq+xDU3LjD9cJ/nmqe4yz9VaTxOCaZPl3i 0DZON+Oi2OdbcX2x6SN51YJq9XRwmKQtkgucE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=cOnDCIRTzNMZwayUy9tv+N+c4SmL9C89Z9byOcw35Hg=; b=BxVtEXQDsmR5X8mu2c64WGvcXx2cqN0m889BMAwfyxQ1ozoJzW+MA6ZnLviwj0m9fr A1etNLHWYaYVPbscknQ+VJ8drq5bbanBNCBFAy5Cbeik727rv1HXV52NupNj+nx+5mIh G06occW++xTi8wt+JazPixodOoZEBFG5RHr9N2L5PWsY+ryI9aQwkP5B826oJ79J7KSy 4ahsxlzf/wLB/AS8mPuQdDsw99IBRQqAdDcJXKeFd2TIql27o89lGh+fyM8tgc2cxykP ZSpBDEZ+0wo1mFc+QtIKp7vdal4TQDbjvTxbz8hYP4tWt3tiUx2vCwMgtTJNkvEH23O2 J9nw== X-Gm-Message-State: ALoCoQmpN2AfjAH4Feg+gmFyWnFeDPSzkLKiB8dtyGn7aZ7yENB14pFHDFbFXCZQ41rUZ0Z5Q7c7CfhYfaKuqwipRYss+QhbzA== X-Received: by 10.107.167.18 with SMTP id q18mr38348017ioe.141.1450258157882; Wed, 16 Dec 2015 01:29:17 -0800 (PST) Received: from bala-Vostro-2520.caveonetworks.com ([111.93.218.67]) by smtp.gmail.com with ESMTPSA id o86sm2549486ioi.36.2015.12.16.01.29.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 16 Dec 2015 01:29:17 -0800 (PST) From: Balasubramanian Manoharan To: lng-odp@lists.linaro.org Date: Wed, 16 Dec 2015 14:58:52 +0530 Message-Id: <1450258133-3375-5-git-send-email-bala.manoharan@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1450258133-3375-1-git-send-email-bala.manoharan@linaro.org> References: <1450258133-3375-1-git-send-email-bala.manoharan@linaro.org> X-Topics: Classification patch Subject: [lng-odp] [API-NEXT/PATCHv2 5/6] api: classification: rename odp_drop_e to odp_cls_drop_t X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" 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" Changes drop policy enum name from odp_drop_e to odp_cls_drop_t Signed-off-by: Balasubramanian Manoharan --- include/odp/api/classification.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/odp/api/classification.h b/include/odp/api/classification.h index 4db5bf0..c9493c2 100644 --- a/include/odp/api/classification.h +++ b/include/odp/api/classification.h @@ -65,7 +65,7 @@ extern "C" { typedef enum odp_cls_drop { ODP_COS_DROP_POOL, /**< Follow buffer pool drop policy */ ODP_COS_DROP_NEVER, /**< Never drop, ignoring buffer pool policy */ -} odp_drop_e; +} odp_cls_drop_t; /** * Packet header field enumeration @@ -95,7 +95,7 @@ typedef enum odp_cos_hdr_flow_fields { typedef struct odp_cls_cos_param { odp_queue_t queue; /**< Queue associated with CoS */ odp_pool_t pool; /**< Pool associated with CoS */ - odp_drop_e drop_policy; /**< Drop policy associated with CoS */ + odp_cls_drop_t drop_policy; /**< Drop policy associated with CoS */ } odp_cls_cos_param_t; /** @@ -170,7 +170,7 @@ odp_queue_t odp_cos_queue(odp_cos_t cos_id); * * @note Optional. */ -int odp_cos_drop_set(odp_cos_t cos_id, odp_drop_e drop_policy); +int odp_cos_drop_set(odp_cos_t cos_id, odp_cls_drop_t drop_policy); /** * Get the drop policy configured for a specific class-of-service instance. @@ -180,7 +180,7 @@ int odp_cos_drop_set(odp_cos_t cos_id, odp_drop_e drop_policy); * @retval Drop policy configured with the given * class-of-service */ -odp_drop_e odp_cos_drop(odp_cos_t cos_id); +odp_cls_drop_t odp_cos_drop(odp_cos_t cos_id); /** * Request to override per-port class of service