From patchwork Thu Feb 19 18:49:57 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 44853 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f71.google.com (mail-ee0-f71.google.com [74.125.83.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4156021553 for ; Thu, 19 Feb 2015 18:50:39 +0000 (UTC) Received: by eekd17 with SMTP id d17sf155375eek.2 for ; Thu, 19 Feb 2015 10:50:38 -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=mhlpBwTcye2ByLKpTi5WW5OcG4IpULxtm3/2yVGsVm1h4WCbLr++AzZ7em/jXr3F0k EuJzYL425kYz/4fPDKV2/yoFNH3M0l6njoG+9LFhg+Yu8Qq+Zlk+fpii6qP1xsd3k4uY o7SJrAjrqNb0uo5gOrgax5Peojxf3uBdwBpEYXqpVhZnh74R2SpxL4TO/3+2FKDxsjTQ 8EXjftpSFfZQ2hrf3htxH8ouuO603PQB2eApPHVOFyL/VBg39CuSqnsRr1K7JeMXMEjm AuSNCeySozqg8yy0WXC8Ciwd77E9H6QdITMC5GNdTM+ansPVg5A8mu5/PXtm5BybY1qk l4Qg== X-Gm-Message-State: ALoCoQn/eYL+V3XqI0r/YHvmloRHWQybVgqcvQWo2DxbUOfBjNJDhRzEDxSsgo4qA8CM9EUuSvCU X-Received: by 10.180.91.76 with SMTP id cc12mr913941wib.7.1424371838349; Thu, 19 Feb 2015 10:50:38 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.25.134 with SMTP id c6ls184041lag.103.gmail; Thu, 19 Feb 2015 10:50:38 -0800 (PST) X-Received: by 10.112.170.100 with SMTP id al4mr5389633lbc.42.1424371838181; Thu, 19 Feb 2015 10:50:38 -0800 (PST) Received: from mail-la0-f42.google.com (mail-la0-f42.google.com. [209.85.215.42]) by mx.google.com with ESMTPS id dq1si17863627lbc.161.2015.02.19.10.50.38 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Feb 2015 10:50:38 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) client-ip=209.85.215.42; Received: by labpv20 with SMTP id pv20so1503883lab.8 for ; Thu, 19 Feb 2015 10:50:38 -0800 (PST) X-Received: by 10.152.43.193 with SMTP id y1mr5305188lal.35.1424371838065; Thu, 19 Feb 2015 10:50:38 -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 h5csp681676lbj; Thu, 19 Feb 2015 10:50:37 -0800 (PST) X-Received: by 10.236.223.100 with SMTP id u94mr1707141yhp.5.1424371836399; Thu, 19 Feb 2015 10:50:36 -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 v5si25645174qat.109.2015.02.19.10.50.35 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 19 Feb 2015 10:50:36 -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 1YOWBE-0001hj-HS; Thu, 19 Feb 2015 18:50:32 +0000 Received: from mail-ob0-f176.google.com ([209.85.214.176]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YOWB1-0001gf-Qu for lng-odp@lists.linaro.org; Thu, 19 Feb 2015 18:50:19 +0000 Received: by mail-ob0-f176.google.com with SMTP id wo20so18028960obc.7 for ; Thu, 19 Feb 2015 10:50:14 -0800 (PST) X-Received: by 10.182.231.230 with SMTP id tj6mr4017435obc.58.1424371814489; Thu, 19 Feb 2015 10:50:14 -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 z184sm15375902oie.0.2015.02.19.10.50.12 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 19 Feb 2015 10:50:12 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Thu, 19 Feb 2015 12:49:57 -0600 Message-Id: <1424371800-4249-3-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1424371800-4249-1-git-send-email-bill.fischofer@linaro.org> References: <1424371800-4249-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv5 3/6] 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.42 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*/