From patchwork Fri Feb 13 20:35:05 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 44677 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-we0-f199.google.com (mail-we0-f199.google.com [74.125.82.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id F0ACD2153D for ; Fri, 13 Feb 2015 20:35:23 +0000 (UTC) Received: by mail-we0-f199.google.com with SMTP id q59sf12730823wes.2 for ; Fri, 13 Feb 2015 12:35:23 -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: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=eDUtFE5iuwptDUde+6+1aaPUMzZRLxdhLUGj/4TCUfk=; b=KbApgkKbwDSaeYzbRBFkA82JVM3X6H2Oq+w1sUjF+L9JBKxMt6I6xpeuJhi1k6BD2K 1F71l82qKmnT13z3zOr77EsVMkD7b8ytMBLbF8Zb8Wiubr2aAtprLYZAe6GMlTMcOAdF ebraE/KnSJ7deY/ku1d4ioxdEp+qAV50WD3RoAyj+ckHi+UuISgVP44WZ2+4NVELFAg8 VbXwgol2YIOsOe4DqRxrwwTVjKwNCOfKIlHnaidL0k1maOpRZr0xtcGNKjx2OxxNKimj vMcBUd7ZuGjM36csUSmR+p2sRmW1fIzyn3mQ2FTFgzsCKdcMB1oJkfENkuJIJ911kjjP mzKw== X-Gm-Message-State: ALoCoQnZT9U95Hv3yLRBLaEzL7PqfEOxalZuG4iV9EYLrl7Q3BAEuPXTATMZK2T3eRnxAidm7ZYi X-Received: by 10.112.130.70 with SMTP id oc6mr1669589lbb.13.1423859723245; Fri, 13 Feb 2015 12:35:23 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.22.42 with SMTP id a10ls374737laf.71.gmail; Fri, 13 Feb 2015 12:35:23 -0800 (PST) X-Received: by 10.112.189.225 with SMTP id gl1mr9874612lbc.111.1423859723097; Fri, 13 Feb 2015 12:35:23 -0800 (PST) Received: from mail-la0-f43.google.com (mail-la0-f43.google.com. [209.85.215.43]) by mx.google.com with ESMTPS id oe8si467152lbc.166.2015.02.13.12.35.23 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Feb 2015 12:35:23 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.43 as permitted sender) client-ip=209.85.215.43; Received: by labgd6 with SMTP id gd6so18723730lab.7 for ; Fri, 13 Feb 2015 12:35:22 -0800 (PST) X-Received: by 10.152.28.227 with SMTP id e3mr6116935lah.117.1423859722943; Fri, 13 Feb 2015 12:35:22 -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 h5csp92642lbj; Fri, 13 Feb 2015 12:35:22 -0800 (PST) X-Received: by 10.140.89.146 with SMTP id v18mr26428921qgd.65.1423859721525; Fri, 13 Feb 2015 12:35:21 -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 k66si4047036qgd.72.2015.02.13.12.35.20 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 13 Feb 2015 12:35:21 -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 1YMMxJ-0005DD-Hf; Fri, 13 Feb 2015 20:35:17 +0000 Received: from mail-pd0-f174.google.com ([209.85.192.174]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YMMxD-0005AG-SX for lng-odp@lists.linaro.org; Fri, 13 Feb 2015 20:35:11 +0000 Received: by pdev10 with SMTP id v10so21586819pde.7 for ; Fri, 13 Feb 2015 12:35:06 -0800 (PST) X-Received: by 10.68.200.36 with SMTP id jp4mr17905570pbc.153.1423859706491; Fri, 13 Feb 2015 12:35:06 -0800 (PST) Received: from localhost.localdomain ([210.177.145.245]) by mx.google.com with ESMTPSA id fg6sm7583945pdb.24.2015.02.13.12.35.05 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 13 Feb 2015 12:35:05 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Fri, 13 Feb 2015 12:35:05 -0800 Message-Id: <1423859705-9626-1-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.0 X-Topics: patch Subject: [lng-odp] [PATCH 3/4] api: pools: normalize odp_pool_param_t layout 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: bill.fischofer@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.43 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 Remove placeholders and standardize struct parameter layout. Signed-off-by: Bill Fischofer --- include/odp/api/pool.h | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/include/odp/api/pool.h b/include/odp/api/pool.h index 66dc70e..981aee8 100644 --- a/include/odp/api/pool.h +++ b/include/odp/api/pool.h @@ -49,6 +49,7 @@ extern "C" { typedef struct odp_pool_param_t { union { struct { + uint32_t num; /**< Number of buffers in the pool */ uint32_t size; /**< Buffer size in bytes. The maximum number of bytes application will store in each @@ -58,20 +59,11 @@ typedef struct odp_pool_param_t { Use 0 for default alignment. Default will always be a multiple of 8. */ - uint32_t num; /**< Number of buffers in the pool */ } buf; struct { - uint32_t seg_len; /**< Minimum number of packet data - bytes that are stored in the - first segment of a packet. - The maximum value is defined by - ODP_CONFIG_PACKET_SEG_LEN_MAX. - Use 0 for default. */ - uint32_t __res1; /* Keep struct identical to buf, - until implementation is fixed */ uint32_t num; /**< The number of packets that the pool must provide that are - packet lenght 'len' bytes or + packet length 'len' bytes or smaller. */ uint32_t len; /**< Minimum packet length that the pool must provide 'num' @@ -80,10 +72,14 @@ typedef struct odp_pool_param_t { packets are larger than 'len'. Use 0 for default. */ + uint32_t seg_len; /**< Minimum number of packet data + bytes that are stored in the + first segment of a packet. + The maximum value is defined by + ODP_CONFIG_PACKET_SEG_LEN_MAX. + Use 0 for default. */ } pkt; struct { - uint32_t __res1; /* Keep struct identical to buf, */ - uint32_t __res2; /* until pool implementation is fixed*/ uint32_t num; /**< Number of timeouts in the pool */ } tmo; };