From patchwork Tue Oct 21 05:41:46 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Balasubramanian Manoharan X-Patchwork-Id: 39094 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 66A41203C5 for ; Tue, 21 Oct 2014 05:42:48 +0000 (UTC) Received: by mail-wi0-f197.google.com with SMTP id n3sf418831wiv.8 for ; Mon, 20 Oct 2014 22:42:47 -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=mYtQbE5ItLi18iPmUbHmTqbovVuJ3XfKmHZRLvH6xsI=; b=CGZ+WOidPzoihdfyj0FKXtxxKTwyacCtXVe5E7caRFehDaWHGq9fFV51qtY6tfsecu a/N2ufhGdlQJ81UblQqlTVsp7fJqdLS59O68ha6QUnhxwlzDdaVsvP36D8TzaP8NamGg wEarIhFhyLMLLGYaRzi59I2DwZ8Xl8wwMheuibeWGQEtv9ocNQSsaNGBgLL9yIMzJvgI aoGHhEZkqyGwMf7/P0TPnoniJ7zbl48hOqm4LMu8UKezZTRNw+l4oqdYYRHgmFRkb1lx 3cSAlvQaog1SR6d3FXmw4tVdbX+ukYac0k1hWeaUdYj9dZw7k5b37AhvKQv3wk13J3Mw q9pQ== X-Gm-Message-State: ALoCoQn7Bjxi3MwZqIxiomgNsjrZkHPhXk13p5hdz7QPCwvxHPhnfnnppnpxbrzQ4yRI+jAubyfh X-Received: by 10.152.28.4 with SMTP id x4mr81720lag.7.1413870167505; Mon, 20 Oct 2014 22:42:47 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.88.13 with SMTP id bc13ls17034lab.21.gmail; Mon, 20 Oct 2014 22:42:47 -0700 (PDT) X-Received: by 10.112.12.35 with SMTP id v3mr13806577lbb.80.1413870167363; Mon, 20 Oct 2014 22:42:47 -0700 (PDT) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com. [209.85.215.52]) by mx.google.com with ESMTPS id ce7si17160732lbc.71.2014.10.20.22.42.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 20 Oct 2014 22:42:47 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) client-ip=209.85.215.52; Received: by mail-la0-f52.google.com with SMTP id hz20so372034lab.11 for ; Mon, 20 Oct 2014 22:42:47 -0700 (PDT) X-Received: by 10.152.87.98 with SMTP id w2mr31552952laz.27.1413870167232; Mon, 20 Oct 2014 22:42:47 -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 c5csp437061lbz; Mon, 20 Oct 2014 22:42:46 -0700 (PDT) X-Received: by 10.224.167.208 with SMTP id r16mr30988992qay.42.1413870166003; Mon, 20 Oct 2014 22:42:46 -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 i69si20182613qge.28.2014.10.20.22.42.45 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 20 Oct 2014 22:42:45 -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 1XgSDU-0005cz-EB; Tue, 21 Oct 2014 05:42:44 +0000 Received: from mail-yh0-f51.google.com ([209.85.213.51]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XgSDO-0005cu-Gj for lng-odp@lists.linaro.org; Tue, 21 Oct 2014 05:42:38 +0000 Received: by mail-yh0-f51.google.com with SMTP id t59so730243yho.38 for ; Mon, 20 Oct 2014 22:42:33 -0700 (PDT) X-Received: by 10.236.223.105 with SMTP id u99mr9584692yhp.150.1413870153283; Mon, 20 Oct 2014 22:42:33 -0700 (PDT) Received: from bala-PowerEdge-T110-II.caveonetworks.com ([111.93.218.67]) by mx.google.com with ESMTPSA id b59sm8098409yha.33.2014.10.20.22.42.31 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 20 Oct 2014 22:42:32 -0700 (PDT) From: Balasubramanian Manoharan To: lng-odp@lists.linaro.org Date: Tue, 21 Oct 2014 11:11:46 +0530 Message-Id: <1413870106-20049-1-git-send-email-bala.manoharan@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Topics: patch Subject: [lng-odp] [ODP PATCH] Doxygen error correction 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.215.52 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 --- This patch corrects the errors in classification header file pointed out by doxygen tool platform/linux-generic/include/api/odp_classification.h | 14 +++++++++----- platform/linux-generic/odp_classification.c | 3 ++- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/platform/linux-generic/include/api/odp_classification.h b/platform/linux-generic/include/api/odp_classification.h index 99b94e9..0c24cd5 100644 --- a/platform/linux-generic/include/api/odp_classification.h +++ b/platform/linux-generic/include/api/odp_classification.h @@ -195,7 +195,7 @@ int odp_pktio_set_skip(odp_pktio_t pktio_in, size_t offset); * * @note Optional. */ -int odp_pktio_set_headroom(odp_pktio_t port_id, size_t headroom); +int odp_pktio_set_headroom(odp_pktio_t pktio_in, size_t headroom); /** * Specify per-cos buffer headroom @@ -210,7 +210,7 @@ int odp_pktio_set_headroom(odp_pktio_t port_id, size_t headroom); * * @note Optional. */ -int odp_cos_set_headroom(odp_cos_t cos_id, size_t req_room); +int odp_cos_set_headroom(odp_cos_t cos_id, size_t headroom); /** * Request to override per-port class of service @@ -315,10 +315,14 @@ odp_cos_port_flow_signature(odp_pktio_t pktio_in, * PMR - Packet Matching Rule * Up to 32 bit of ternary matching of one of the available header fields */ -#define ODP_PMR_INVAL ((odp_pmr_t)NULL) typedef uint32_t odp_pmr_t; /** + * Macro for Invalid PMR. + */ +#define ODP_PMR_INVAL ((odp_pmr_t)NULL) + +/** * Packet Matching Rule field enumeration * for fields that may be used to calculate * the PMR, if present in a packet. @@ -462,7 +466,7 @@ typedef enum odp_pmr_match_type { * appropriate fallback action. */ typedef struct odp_pmr_match_t { - odp_pmr_match_type_e match_type; + odp_pmr_match_type_e match_type; /**< Packet Match Type*/ union { struct { odp_pmr_term_e term; @@ -501,7 +505,7 @@ typedef uint32_t odp_pmr_set_t; * or -1 for error. */ 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); /** * Function to delete a composite packet match rule set diff --git a/platform/linux-generic/odp_classification.c b/platform/linux-generic/odp_classification.c index 901087c..dbc74e2 100644 --- a/platform/linux-generic/odp_classification.c +++ b/platform/linux-generic/odp_classification.c @@ -209,11 +209,12 @@ unsigned odp_pmr_terms_avail(void) } 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) { (void)num_terms; (void)terms; (void)pmr_set_id; + (void)dst_cos; ODP_UNIMPLEMENTED(); return 0; }