From patchwork Fri Jan 30 13:10:04 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petri Savolainen X-Patchwork-Id: 44041 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5F4D420CA8 for ; Fri, 30 Jan 2015 13:11:19 +0000 (UTC) Received: by mail-lb0-f197.google.com with SMTP id b6sf1267200lbj.0 for ; Fri, 30 Jan 2015 05:11:18 -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=4dSR1AkUlLqfjRFtm4PoIqTou3t8Wor35s5bSPtJuPo=; b=IBXosLnio2FfJf0wCQdJLfd0AxP0lS/THz2nmhTbj9rJRdyt41LBYagiVzQOMdpNlk VbGzpwTskBek4aWIhuYgMoc+ye308jCFiX7Fjrko+dYwc9N3O5EhM3eyPJf4XGMhqW4Q SDqff0D8P+crEZi1Gi7moN0BVKO4j+V9j/47tR7QStliHgzSm5eQ79+ppIgEdXTF0lw8 q92pTxoi3s9mw3hJkW35bvCScP4RczLikQxTbF2KpxLYzeL7VyhRDHskHMNKy1piGe5Z e1oUU0QzJLTVvpwzQI2iqbJBxhN2wD6mYMmQqNdvTFOetaWdzPWNS3ifi1gCLxI+FNre EPOw== X-Gm-Message-State: ALoCoQkatpRypzETNu9K7GjvoYYFrY7m+89excN2zLNeD/Yvy3iG2xoW4I3DFPwx4riVNWcAHrBQ X-Received: by 10.152.37.130 with SMTP id y2mr817264laj.8.1422623478133; Fri, 30 Jan 2015 05:11:18 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.115.230 with SMTP id jr6ls429430lab.69.gmail; Fri, 30 Jan 2015 05:11:17 -0800 (PST) X-Received: by 10.152.198.200 with SMTP id je8mr6100695lac.93.1422623477925; Fri, 30 Jan 2015 05:11:17 -0800 (PST) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com. [209.85.215.49]) by mx.google.com with ESMTPS id jb3si10061889lbc.79.2015.01.30.05.11.17 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 30 Jan 2015 05:11:17 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) client-ip=209.85.215.49; Received: by mail-la0-f49.google.com with SMTP id gf13so23433718lab.8 for ; Fri, 30 Jan 2015 05:11:17 -0800 (PST) X-Received: by 10.152.6.132 with SMTP id b4mr6282374laa.59.1422623477814; Fri, 30 Jan 2015 05:11:17 -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 h5csp278745lbj; Fri, 30 Jan 2015 05:11:17 -0800 (PST) X-Received: by 10.52.73.166 with SMTP id m6mr2495846vdv.13.1422623476185; Fri, 30 Jan 2015 05:11:16 -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 n13si4981152vci.49.2015.01.30.05.11.14 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 30 Jan 2015 05:11:16 -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 1YHBLr-0006jt-7b; Fri, 30 Jan 2015 13:11:11 +0000 Received: from mail-qg0-f47.google.com ([209.85.192.47]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YHBLl-0006jg-1p for lng-odp@lists.linaro.org; Fri, 30 Jan 2015 13:11:05 +0000 Received: by mail-qg0-f47.google.com with SMTP id z60so38018878qgd.6 for ; Fri, 30 Jan 2015 05:10:59 -0800 (PST) X-Received: by 10.224.136.130 with SMTP id r2mr12231910qat.18.1422623459769; Fri, 30 Jan 2015 05:10:59 -0800 (PST) Received: from mcpro03.emea.nsn-net.net (ec2-23-23-178-99.compute-1.amazonaws.com. [23.23.178.99]) by mx.google.com with ESMTPSA id l10sm9970837qay.22.2015.01.30.05.10.57 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 30 Jan 2015 05:10:58 -0800 (PST) From: Petri Savolainen To: lng-odp@lists.linaro.org Date: Fri, 30 Jan 2015 15:10:04 +0200 Message-Id: <1422623405-11667-1-git-send-email-petri.savolainen@linaro.org> X-Mailer: git-send-email 2.2.2 X-Topics: patch Subject: [lng-odp] [PATCH 1/2] api: pool: Added packet pool parameters 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: petri.savolainen@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.49 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 Completed odp_pool_param_t definition with packet pool parameters. Parameter definition is close to what we are using already. Segment min length, segment min alignment and number of segments. Signed-off-by: Petri Savolainen --- include/odp/api/pool.h | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/include/odp/api/pool.h b/include/odp/api/pool.h index 1582102..e407704 100644 --- a/include/odp/api/pool.h +++ b/include/odp/api/pool.h @@ -61,13 +61,23 @@ typedef struct odp_pool_param_t { of 8. */ uint32_t num; /**< Number of buffers in the pool */ } buf; -/* Reserved for packet and timeout specific params struct { - uint32_t seg_size; - uint32_t seg_align; - uint32_t num; + uint32_t seg_len; /**< Minimum packet segment buffer + length in bytes. It includes + possible head-/tailroom bytes. + Use 0 for default length. */ + uint32_t seg_align; /**< Minimum packet segment buffer + alignment in bytes. Valid + values are powers of two. Use 0 + for default alignment. Default + will always be a multiple of 8. + */ + uint32_t seg_num; /**< Number of packet segments in + the pool. It's also the maximum + number of packets, since each + packet consist of at least one + segment. */ } pkt; -*/ struct { uint32_t __res1; /* Keep struct identical to buf, */ uint32_t __res2; /* until pool implementation is fixed*/