From patchwork Thu Feb 19 13:38: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: 44838 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f70.google.com (mail-ee0-f70.google.com [74.125.83.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D0A6221554 for ; Thu, 19 Feb 2015 13:38:43 +0000 (UTC) Received: by mail-ee0-f70.google.com with SMTP id c41sf5534231eek.1 for ; Thu, 19 Feb 2015 05:38:43 -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=BouyGcebLkNiI9Ul/5w64PDqRE0bWxQtfRJf4gnIjZE=; b=lWLP3lncPsxbT2+CJll7b4fBrmwjFRHgWYwnxNfks7hbq4VSvFTvx40FMmas0UNeVm AL+ijZk48mxuZKilpDKXcw0qLqIHpo7dFcfYtipLCIUcEOiLDvuvE22dChH+JmE54fhj WsoVzhjEUo0xVNcCVIkGj/7h9RCBt2yF0Dth3eejM1XIH8lhLhZWiWSC2EB8tBLdim6C OLqHAKgHeHeXpZgq04/QhCNY/R1e3mnPFRK1/pTZEX7uBF7Wqk5GCj374V5I1mqrrpWB zSNTLqZBz7SR7yDU198T42ZUKM3Gjo106J4RlXenDNIR8BDAQGlhrWIaUrUWKlU3roP6 vb1g== X-Gm-Message-State: ALoCoQlKf9XQpGcogrVOcsK+FP5quhQeLJidDVbtfzBHek6XqTuRKDyD/HiWlvYC1z094YDdb5jZ X-Received: by 10.112.46.106 with SMTP id u10mr578994lbm.3.1424353122988; Thu, 19 Feb 2015 05:38:42 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.198.231 with SMTP id jf7ls153557lac.92.gmail; Thu, 19 Feb 2015 05:38:42 -0800 (PST) X-Received: by 10.112.219.135 with SMTP id po7mr3803306lbc.111.1424353122771; Thu, 19 Feb 2015 05:38:42 -0800 (PST) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com. [209.85.217.181]) by mx.google.com with ESMTPS id k1si17265936laf.21.2015.02.19.05.38.42 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Feb 2015 05:38:42 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) client-ip=209.85.217.181; Received: by lbiw7 with SMTP id w7so7478985lbi.9 for ; Thu, 19 Feb 2015 05:38:42 -0800 (PST) X-Received: by 10.152.88.4 with SMTP id bc4mr4044586lab.86.1424353122498; Thu, 19 Feb 2015 05:38:42 -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 h5csp497190lbj; Thu, 19 Feb 2015 05:38:41 -0800 (PST) X-Received: by 10.140.81.242 with SMTP id f105mr11675471qgd.33.1424353120988; Thu, 19 Feb 2015 05:38:40 -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 j189si16393479qhc.132.2015.02.19.05.38.39 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 19 Feb 2015 05:38:40 -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 1YORJN-0003NS-Nz; Thu, 19 Feb 2015 13:38:37 +0000 Received: from mail-ob0-f171.google.com ([209.85.214.171]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YORJA-0003Ma-3B for lng-odp@lists.linaro.org; Thu, 19 Feb 2015 13:38:24 +0000 Received: by mail-ob0-f171.google.com with SMTP id gq1so14339032obb.2 for ; Thu, 19 Feb 2015 05:38:18 -0800 (PST) X-Received: by 10.60.92.5 with SMTP id ci5mr2942205oeb.26.1424353098871; Thu, 19 Feb 2015 05:38:18 -0800 (PST) Received: from localhost.localdomain (cpe-24-28-70-239.austin.res.rr.com. [24.28.70.239]) by mx.google.com with ESMTPSA id r83sm14906414oif.28.2015.02.19.05.38.18 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 19 Feb 2015 05:38:18 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Thu, 19 Feb 2015 07:38:05 -0600 Message-Id: <1424353087-14302-3-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1424353087-14302-1-git-send-email-bill.fischofer@linaro.org> References: <1424353087-14302-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv4 3/5] 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.217.181 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 | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/include/odp/api/pool.h b/include/odp/api/pool.h index 66dc70e..6fe52fa 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,16 +72,19 @@ 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; }; int type; /**< Pool type */ - } odp_pool_param_t; /** Packet pool*/