From patchwork Wed Feb 18 20:02:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 44797 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9FD7521554 for ; Wed, 18 Feb 2015 20:03:26 +0000 (UTC) Received: by lbvp9 with SMTP id p9sf2300818lbv.1 for ; Wed, 18 Feb 2015 12:03:25 -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=EaMaYNhKxS7plEOjlS0xfm+rhptAjBtjp32kRp6b4jJKvQx+7yhyPAUPlN+Ki2x1v4 mhtYG5vONXzYAvnguYOcsHUEoDqAOjsPQx+A6cCyRfUup/Bji0mggUoPGWLi2tncUUGT otjTX9ttLZP6drUCeQxndWGRLgkXOlJ6MVK05tNlzfrAUM+fkCQWYzU/oZjDsDLhy1vk B2Pmgm1nslo/tBvAjLH3TK8V6sHCUCmXXZeETckFm7Jx0nyPO8yeV7THyQStmc5fKBn+ MXdFZR9pFdmEqOluMo9PV12S8bJZwXmJKIvOZP8WSrD/sGQQEbUGxNZGy7GpzDVfzgf3 F2XQ== X-Gm-Message-State: ALoCoQlidIc5cIOcjoP1XphPujSIPhjwnKK2+kVUq3ihV5wV726o5XBrNjoxR8I3+TwDjuObu/b8 X-Received: by 10.112.77.101 with SMTP id r5mr155241lbw.4.1424289805443; Wed, 18 Feb 2015 12:03:25 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.206.72 with SMTP id lm8ls80411lac.3.gmail; Wed, 18 Feb 2015 12:03:25 -0800 (PST) X-Received: by 10.152.87.134 with SMTP id ay6mr846266lab.75.1424289805163; Wed, 18 Feb 2015 12:03:25 -0800 (PST) Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com. [209.85.217.180]) by mx.google.com with ESMTPS id cz2si8346546lac.23.2015.02.18.12.03.24 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Feb 2015 12:03:24 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.180 as permitted sender) client-ip=209.85.217.180; Received: by lbjb6 with SMTP id b6so3451862lbj.2 for ; Wed, 18 Feb 2015 12:03:24 -0800 (PST) X-Received: by 10.152.37.138 with SMTP id y10mr1006267laj.88.1424289804867; Wed, 18 Feb 2015 12:03:24 -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 h5csp52365lbj; Wed, 18 Feb 2015 12:03:24 -0800 (PST) X-Received: by 10.236.39.233 with SMTP id d69mr597948yhb.189.1424289803442; Wed, 18 Feb 2015 12:03:23 -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 fz1si22388695qcb.37.2015.02.18.12.03.20 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 18 Feb 2015 12:03:23 -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 1YOAq6-0004wR-KV; Wed, 18 Feb 2015 20:03:18 +0000 Received: from mail-ob0-f179.google.com ([209.85.214.179]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YOAps-0004mN-8O for lng-odp@lists.linaro.org; Wed, 18 Feb 2015 20:03:04 +0000 Received: by mail-ob0-f179.google.com with SMTP id wp4so6352342obc.10 for ; Wed, 18 Feb 2015 12:02:59 -0800 (PST) X-Received: by 10.182.27.164 with SMTP id u4mr616420obg.63.1424289778938; Wed, 18 Feb 2015 12:02:58 -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 fi4sm13672102obb.16.2015.02.18.12.02.58 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 18 Feb 2015 12:02:58 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Wed, 18 Feb 2015 14:02:45 -0600 Message-Id: <1424289767-16347-3-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1424289767-16347-1-git-send-email-bill.fischofer@linaro.org> References: <1424289767-16347-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv3 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.180 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*/