From patchwork Wed Dec 16 09:28:53 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Balasubramanian Manoharan X-Patchwork-Id: 58492 Delivered-To: patch@linaro.org Received: by 10.112.89.199 with SMTP id bq7csp580825lbb; Wed, 16 Dec 2015 01:37:26 -0800 (PST) X-Received: by 10.140.101.38 with SMTP id t35mr11303791qge.105.1450258646181; Wed, 16 Dec 2015 01:37:26 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id s30si5832125qge.104.2015.12.16.01.37.25; Wed, 16 Dec 2015 01:37:26 -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 836DC618BF; Wed, 16 Dec 2015 09:37:25 +0000 (UTC) Authentication-Results: lists.linaro.org; dkim=fail reason="verification failed; unprotected key" header.d=linaro.org header.i=@linaro.org header.b=I0i0xXqH; 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 59A6861CDF; Wed, 16 Dec 2015 09:31:34 +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 6380161CEB; Wed, 16 Dec 2015 09:31:30 +0000 (UTC) Received: from mail-ig0-f170.google.com (mail-ig0-f170.google.com [209.85.213.170]) by lists.linaro.org (Postfix) with ESMTPS id 1E83261CEA for ; Wed, 16 Dec 2015 09:29:20 +0000 (UTC) Received: by mail-ig0-f170.google.com with SMTP id to18so39870775igc.0 for ; Wed, 16 Dec 2015 01:29:20 -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=aIaaQH3cU0xAr25qOhM0LaqwzVbMIz+AXqQsrac+bf8=; b=I0i0xXqH4rkz+8jj2i8jxgoCifzyD1xseaLdBtr5ARiqjVX7gLQjeRkD4x78LtVKpt URcj5CL/yTD/yoEGVPHNWP9p8ZHVreE+wCBMwXh+jqaKLfEXRWFjtA/+KXGOH94FU/6h rAScrYIIgRL7dSRfgAkZoDhxhzWVeF09Fx50A= 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=aIaaQH3cU0xAr25qOhM0LaqwzVbMIz+AXqQsrac+bf8=; b=J0C5RXC235jafjy0mD+IiD9FQEMa/k9KopfDEhTgvdiBCUFfTdLhgBMYlcHs/+cl// /LMB43TUK0gZeFzSYzLJw7oamraNmj+KMdoYSK0NPHkHXWsEBFp4gTkHTZRHT2wzb8tV MxoR1W2AqQKSfX6DKHvKHV/Cl8Wip2fOqPK9Kg/wWzsPUQ9m4mfKgQawUL2KV2eLQ0T2 89lkoCE0rr9ueNLGRRRrxngQlbC6HM9qtX4TN09PdlUW/kLwWXFkvJ3tn/yPdnBu3RIw wCN9+RHgUwBngZ5AwxoUaWcLjQbX1iyVlaNSwCMT9CpJFKUKCjd2FWOvT4A9e9vPvggg Q9oA== X-Gm-Message-State: ALoCoQmHbJVuR6qpcc7nNMZafYssiajNh7vtYXXYTHkGVvaTBuGaxwsnWk9EKuwiHMDc50nGitPZ6RjmszOnc5JEK+wGq1DMMg== X-Received: by 10.107.165.11 with SMTP id o11mr25544557ioe.50.1450258159638; Wed, 16 Dec 2015 01:29:19 -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.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 16 Dec 2015 01:29:19 -0800 (PST) From: Balasubramanian Manoharan To: lng-odp@lists.linaro.org Date: Wed, 16 Dec 2015 14:58:53 +0530 Message-Id: <1450258133-3375-6-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 6/6] linux-generic: 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 --- platform/linux-generic/include/odp_classification_datamodel.h | 2 +- platform/linux-generic/odp_classification.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/platform/linux-generic/include/odp_classification_datamodel.h b/platform/linux-generic/include/odp_classification_datamodel.h index 7784ea8..5b65202 100644 --- a/platform/linux-generic/include/odp_classification_datamodel.h +++ b/platform/linux-generic/include/odp_classification_datamodel.h @@ -70,7 +70,7 @@ struct cos_s { union pmr_u *pmr; /* Chained PMR */ union cos_u *linked_cos; /* CoS linked with the PMR */ uint32_t valid; /* validity Flag */ - odp_drop_e drop_policy; /* Associated Drop Policy */ + odp_cls_drop_t drop_policy; /* Associated Drop Policy */ odp_queue_group_t queue_group; /* Associated Queue Group */ odp_cos_flow_set_t flow_set; /* Assigned Flow Set */ char name[ODP_COS_NAME_LEN]; /* name */ diff --git a/platform/linux-generic/odp_classification.c b/platform/linux-generic/odp_classification.c index da6123e..7a8b239 100644 --- a/platform/linux-generic/odp_classification.c +++ b/platform/linux-generic/odp_classification.c @@ -166,7 +166,7 @@ odp_cos_t odp_cls_cos_create(const char *name, odp_cls_cos_param_t *param) int i; queue_entry_t *queue; pool_entry_t *pool; - odp_drop_e drop_policy; + odp_cls_drop_t drop_policy; /* Packets are dropped if Queue or Pool is invalid*/ if (param->queue == ODP_QUEUE_INVALID) @@ -321,7 +321,7 @@ odp_queue_t odp_cos_queue(odp_cos_t cos_id) return cos->s.queue->s.handle; } -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) { cos_t *cos = get_cos_entry(cos_id); @@ -335,7 +335,7 @@ int odp_cos_drop_set(odp_cos_t cos_id, odp_drop_e drop_policy) return 0; } -odp_drop_e odp_cos_drop(odp_cos_t cos_id) +odp_cls_drop_t odp_cos_drop(odp_cos_t cos_id) { cos_t *cos = get_cos_entry(cos_id);