From patchwork Wed Feb 4 12:00:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taras Kondratiuk X-Patchwork-Id: 44331 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A0AAD21513 for ; Wed, 4 Feb 2015 12:00:52 +0000 (UTC) Received: by mail-wi0-f200.google.com with SMTP id fb4sf2018222wid.3 for ; Wed, 04 Feb 2015 04:00:52 -0800 (PST) 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:in-reply-to :references:subject:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=sRO88sgArRAxz1RUi7YZbYQZKswUJzDMWQF4c3A/uS8=; b=B2CNXCuIyV/I9noHKlhKNA0wfa3+/F5dL6VgP2Yb3G6uJooRAYFoIstvsjwdU8YRWP JsIWWntboTe7owo+1C7lCQUDpirmE2lA5/oCdWTeSpYAPNchudj7hIyj6AvER5Id/3HJ W8BxMJSZrUS2bn0H2aNeXk2KqS0I255acWLMNpCyMO7VwPv68tthBNxQZlrAmkuetueA ys0eAzDlM8+CTuRrytmH0twwVqTwZcuzjChzh6QrC3Jgd19T/jTjSNPC6ZMAth1zLAok cXRz6WPgrv6N1b3PK6tv5ciVFd0/bM2rZy3+UusIJVAAHtI3I1P4d1yKO2ehhLyvxruW 6+wQ== X-Gm-Message-State: ALoCoQlLmxnQrUhgrQXlcDQ5xXdU2jD9LR9qkFNiv2RtZkneMIg6lx1zIinNR8lkyXr2e1/J1mw9 X-Received: by 10.180.88.66 with SMTP id be2mr2660071wib.1.1423051251990; Wed, 04 Feb 2015 04:00:51 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.5.105 with SMTP id r9ls26552lar.8.gmail; Wed, 04 Feb 2015 04:00:51 -0800 (PST) X-Received: by 10.112.144.136 with SMTP id sm8mr2597386lbb.95.1423051251832; Wed, 04 Feb 2015 04:00:51 -0800 (PST) Received: from mail-lb0-f170.google.com (mail-lb0-f170.google.com. [209.85.217.170]) by mx.google.com with ESMTPS id df3si1120886lac.106.2015.02.04.04.00.51 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Feb 2015 04:00:51 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.170 as permitted sender) client-ip=209.85.217.170; Received: by mail-lb0-f170.google.com with SMTP id w7so1096667lbi.1 for ; Wed, 04 Feb 2015 04:00:51 -0800 (PST) X-Received: by 10.112.164.101 with SMTP id yp5mr29425663lbb.82.1423051251643; Wed, 04 Feb 2015 04:00:51 -0800 (PST) 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.35.133 with SMTP id h5csp439201lbj; Wed, 4 Feb 2015 04:00:49 -0800 (PST) X-Received: by 10.224.22.146 with SMTP id n18mr66176qab.74.1423051247851; Wed, 04 Feb 2015 04:00:47 -0800 (PST) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id f81si1822400qge.11.2015.02.04.04.00.46 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 04 Feb 2015 04:00:47 -0800 (PST) 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 1YIydQ-0004Co-Ui; Wed, 04 Feb 2015 12:00:44 +0000 Received: from mail-la0-f45.google.com ([209.85.215.45]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YIydD-0004A5-W1 for lng-odp@lists.linaro.org; Wed, 04 Feb 2015 12:00:32 +0000 Received: by mail-la0-f45.google.com with SMTP id gd6so1110678lab.4 for ; Wed, 04 Feb 2015 04:00:26 -0800 (PST) X-Received: by 10.112.148.34 with SMTP id tp2mr29687577lbb.94.1423051226205; Wed, 04 Feb 2015 04:00:26 -0800 (PST) Received: from uglx0153363.synapse.com ([195.238.92.128]) by mx.google.com with ESMTPSA id z15sm312379lbn.48.2015.02.04.04.00.24 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 04 Feb 2015 04:00:25 -0800 (PST) From: Taras Kondratiuk To: lng-odp@lists.linaro.org Date: Wed, 4 Feb 2015 14:00:10 +0200 Message-Id: <1423051213-20795-3-git-send-email-taras.kondratiuk@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1423051213-20795-1-git-send-email-taras.kondratiuk@linaro.org> References: <1423051213-20795-1-git-send-email-taras.kondratiuk@linaro.org> X-Topics: Classification patch Subject: [lng-odp] [PATCH 2/5] linux-generic: classification: Remove typedef forward declarations 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: taras.kondratiuk@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.170 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: Taras Kondratiuk --- platform/linux-generic/include/odp_classification_datamodel.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/platform/linux-generic/include/odp_classification_datamodel.h b/platform/linux-generic/include/odp_classification_datamodel.h index 3b42e99..1b11a7b 100644 --- a/platform/linux-generic/include/odp_classification_datamodel.h +++ b/platform/linux-generic/include/odp_classification_datamodel.h @@ -47,8 +47,6 @@ extern "C" { /* Max PMR Term bits */ #define ODP_PMR_TERM_BYTES_MAX 8 -/* forward declaration */ -typedef union pmr_u pmr_t; /** Packet Matching Rule Term Value @@ -71,15 +69,17 @@ typedef struct pmr_term_value { }; } pmr_term_value_t; -typedef union cos_u cos_t; +/* forward declaration */ +union cos_u; +union pmr_u; /* Class Of Service */ struct cos_s { queue_entry_t *queue; /* Associated Queue */ pool_entry_t *pool; /* Associated Buffer pool */ - pmr_t *pmr; /* Chained PMR */ - cos_t *linked_cos; /* CoS linked with the PMR */ + 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_queue_group_t queue_group; /* Associated Queue Group */