From patchwork Tue Oct 21 08:15:01 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Balasubramanian Manoharan X-Patchwork-Id: 39102 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f72.google.com (mail-ee0-f72.google.com [74.125.83.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 24531202DB for ; Tue, 21 Oct 2014 08:16:01 +0000 (UTC) Received: by mail-ee0-f72.google.com with SMTP id d49sf60939eek.7 for ; Tue, 21 Oct 2014 01:16:00 -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=6XLlDL3Wg/SOpdFXKfmuDmawlzxAAXDLo/4slHCyXGY=; b=W1veoiDz56+mmmFpmeV9URMkgDkDCrQcTsecEetzIYnZ6uxa0ahNjaXe/WrkGT5Wxn MlpNB560Rfy+awzs7838U4r1VYaL5ziOJMStN1IbGhpEgdIDAmA7QLLFwc2WHQS1m3BJ 2ZL+iuuBjf08iZG/27AncX687wERoSkMSfr5xGo4uNWzt3MExSCA8JZ+gGjTJrGL6wDP J5k9AiSddg36nE/AdRxX6a858WppO38MWDXSakMrvR0LPmvsCd74Ayz1dDZZe07wLAhl f3qeJ14rBEsbFfD3h9WljiQBvRSuBC+QpGHysCFQttO6r/TY5rk5vCaoXvMnSY7Qru29 8FqA== X-Gm-Message-State: ALoCoQnKE6nYRUTx/0lgBTNZx297PO450MvDGId6Yhsr1rCFx2kM3faTkcrrNxbJFsStr6FISVC6 X-Received: by 10.152.88.70 with SMTP id be6mr4905577lab.1.1413879360180; Tue, 21 Oct 2014 01:16:00 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.170.133 with SMTP id am5ls32733lac.54.gmail; Tue, 21 Oct 2014 01:15:59 -0700 (PDT) X-Received: by 10.112.44.229 with SMTP id h5mr8935235lbm.86.1413879359860; Tue, 21 Oct 2014 01:15:59 -0700 (PDT) Received: from mail-lb0-f173.google.com (mail-lb0-f173.google.com. [209.85.217.173]) by mx.google.com with ESMTPS id xx3si17614755lbb.122.2014.10.21.01.15.59 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 21 Oct 2014 01:15:59 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.173 as permitted sender) client-ip=209.85.217.173; Received: by mail-lb0-f173.google.com with SMTP id 10so541755lbg.32 for ; Tue, 21 Oct 2014 01:15:59 -0700 (PDT) X-Received: by 10.112.97.135 with SMTP id ea7mr33044138lbb.46.1413879359773; Tue, 21 Oct 2014 01:15:59 -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 c5csp453713lbz; Tue, 21 Oct 2014 01:15:59 -0700 (PDT) X-Received: by 10.224.171.194 with SMTP id i2mr43379498qaz.59.1413879358456; Tue, 21 Oct 2014 01:15:58 -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 n69si20731772qga.24.2014.10.21.01.15.57 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 21 Oct 2014 01:15:58 -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 1XgUbk-0002hv-HJ; Tue, 21 Oct 2014 08:15:56 +0000 Received: from mail-ie0-f178.google.com ([209.85.223.178]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XgUbd-0002hp-IN for lng-odp@lists.linaro.org; Tue, 21 Oct 2014 08:15:49 +0000 Received: by mail-ie0-f178.google.com with SMTP id rl12so658088iec.23 for ; Tue, 21 Oct 2014 01:15:44 -0700 (PDT) X-Received: by 10.50.66.179 with SMTP id g19mr24209253igt.8.1413879343883; Tue, 21 Oct 2014 01:15:43 -0700 (PDT) Received: from bala-PowerEdge-T110-II.caveonetworks.com ([111.93.218.67]) by mx.google.com with ESMTPSA id qo2sm5087247igb.21.2014.10.21.01.15.42 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 21 Oct 2014 01:15:43 -0700 (PDT) From: Balasubramanian Manoharan To: lng-odp@lists.linaro.org Date: Tue, 21 Oct 2014 13:45:01 +0530 Message-Id: <1413879301-20675-1-git-send-email-bala.manoharan@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Topics: Classification patch Subject: [lng-odp] [ODP PATCHv2] odp_classification.h: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.217.173 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 This patch corrects the errors in classification header file pointed out by doxygen tool Signed-off-by: Balasubramanian Manoharan --- V2: Updates to commit message. 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; }