From patchwork Tue Oct 21 05:27:24 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Balasubramanian Manoharan X-Patchwork-Id: 39093 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2C091203C5 for ; Tue, 21 Oct 2014 05:28:26 +0000 (UTC) Received: by mail-la0-f71.google.com with SMTP id gi9sf272302lab.10 for ; Mon, 20 Oct 2014 22:28:25 -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:from:to:date:message-id:subject :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=iebwpRctwvbEDDiE+mGAUhnXZ6FApKTK2PYIy8xv3lE=; b=LFO3ZwxUvJuwmqawJXyq6JOhzhvhY95oo5e5aBKmPEh9b3Ycd/nrTzimcIfyytuJSR INZoOX1Qth4tKRSAWKMUUPEx4yzUpp9HnOAwBDAQZhtfTKifm80KIuQka0kZzOHte+Md C2KaC6MZrtFEXyqxQ0ObE/Yy/eFMBNzSfAsya/xg4mJuQ+eTF1xdHIuEABY6xwEbwzaQ scHRCfnhISQMbwh/0bBdJmdXwLBKvjb89IddMAcb3w05ZeBpNMfKMZV2VqOd3H8LGW2N JRuvS3RB+XmfonXvblvnF7ilQFfoW4JsjYsgH/kIm3BdJci7PT1s1tYGLnwESxFkZVDa BihA== X-Gm-Message-State: ALoCoQlvoKe4Bd6pvpuAQxbEFYjdQxBeuuSQ6/u+VKxl7b7yN5Gye6/aUvTZcvrAou8qJawrvnc0 X-Received: by 10.194.100.98 with SMTP id ex2mr13613wjb.6.1413869304985; Mon, 20 Oct 2014 22:28:24 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.197.34 with SMTP id ir2ls16668lac.7.gmail; Mon, 20 Oct 2014 22:28:24 -0700 (PDT) X-Received: by 10.112.73.103 with SMTP id k7mr16429225lbv.41.1413869304827; Mon, 20 Oct 2014 22:28:24 -0700 (PDT) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com. [209.85.217.182]) by mx.google.com with ESMTPS id f6si5616208lbc.6.2014.10.20.22.28.24 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 20 Oct 2014 22:28:24 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.182 as permitted sender) client-ip=209.85.217.182; Received: by mail-lb0-f182.google.com with SMTP id z11so349241lbi.13 for ; Mon, 20 Oct 2014 22:28:24 -0700 (PDT) X-Received: by 10.112.12.35 with SMTP id v3mr13745376lbb.80.1413869304665; Mon, 20 Oct 2014 22:28:24 -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.84.229 with SMTP id c5csp435710lbz; Mon, 20 Oct 2014 22:28:24 -0700 (PDT) X-Received: by 10.140.34.208 with SMTP id l74mr14821287qgl.99.1413869303377; Mon, 20 Oct 2014 22:28:23 -0700 (PDT) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id d16si20033590qac.62.2014.10.20.22.28.22 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 20 Oct 2014 22:28:23 -0700 (PDT) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XgRzY-0005Bw-NK; Tue, 21 Oct 2014 05:28:20 +0000 Received: from mail-yh0-f46.google.com ([209.85.213.46]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XgRzS-0005Bo-GE for lng-odp@lists.linaro.org; Tue, 21 Oct 2014 05:28:14 +0000 Received: by mail-yh0-f46.google.com with SMTP id f73so729352yha.19 for ; Mon, 20 Oct 2014 22:28:09 -0700 (PDT) X-Received: by 10.236.61.6 with SMTP id v6mr45273206yhc.44.1413869289266; Mon, 20 Oct 2014 22:28:09 -0700 (PDT) Received: from bala-PowerEdge-T110-II.caveonetworks.com ([111.93.218.67]) by mx.google.com with ESMTPSA id a67sm8090935yhq.30.2014.10.20.22.28.07 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 20 Oct 2014 22:28:08 -0700 (PDT) From: Balasubramanian Manoharan To: lng-odp@lists.linaro.org Date: Tue, 21 Oct 2014 10:57:24 +0530 Message-Id: <1413869244-19751-1-git-send-email-bala.manoharan@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Topics: Architecture Classification Subject: [lng-odp] [ODP ARCH] Classification API Minor Format changes X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 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-bounces@lists.linaro.org 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.182 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 Signed-off-by: Balasubramanian Manoharan --- Removes struct definition from platform specific opaque handles Corrects variable definition in odp_pktio_pmr_match_set_cos and odp_pmr_match_set_create function classification_design.dox | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/classification_design.dox b/classification_design.dox index 58d55a1..827fe58 100644 --- a/classification_design.dox +++ b/classification_design.dox @@ -143,7 +143,7 @@ The names are part of the ODP API and MUST be present in any conforming implemen /** * Class of service instance type */ -typedef uint32_t odp_cos_t; +typedef odp_cos_t; /** @@ -518,7 +518,7 @@ The following data structures SHOULD be implemented to support the definition of #define ODP_PMR_INVAL ((odp_pmr_t)NULL) -typedef struct odp_pmr_s *odp_pmr_t; +typedef odp_pmr_t; @endverbatim @subsection terms Terms @@ -765,7 +765,7 @@ typedef struct odp_pmr_match_t { /** An opaque handle to a composite packet match rule-set */ -typedef struct odp_pmr_set_s *odp_pmr_set_t; +typedef odp_pmr_set_t; @endverbatim The above structure is used with the following APIs to implement table-based PMRs: @@ -790,7 +790,7 @@ The above structure is used with the following APIs to implement table-based PMR */ int odp_pmr_match_set_create(int num_terms, odp_pmr_match_t *terms, - odp_pmr_set_t *pmr_set_id); + odp_cos_t dst_cos, odp_pmr_set_t *pmr_set_id); @endverbatim This routine is used to create a PMR match set. @@ -830,7 +830,7 @@ This routine destroys a PMR match set previously created by odp_pmr_match_set_cr * @return Success or ODP_PARAMETER_ERROR */ -int odp_pktio_pmr_match_set_cos(odp_pmr_t pmr_id, odp_pktio_t src_pktio, +int odp_pktio_pmr_match_set_cos(odp_pmr_set_t pmr_set_id, odp_pktio_t src_pktio, odp_cos_t dst_cos); @endverbatim