From patchwork Fri Feb 13 03:32:46 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petri Savolainen X-Patchwork-Id: 44641 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f70.google.com (mail-wg0-f70.google.com [74.125.82.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8065721527 for ; Fri, 13 Feb 2015 03:33:29 +0000 (UTC) Received: by mail-wg0-f70.google.com with SMTP id y19sf8946618wgg.1 for ; Thu, 12 Feb 2015 19:33:28 -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=QrBs4z58caNWDe/hjgSOFjiXDSdcMS7QyHOEGHPdmv8=; b=DkwWii/vDCiFXrEqqEMz35+a2Q/RTi32vF/7JFUHQXv1DIL/CSUtq2DAZIDHCiYXzy IKfOvBGLJZx0b9dmuJp+iK9/SwQeiWjmInSeF3Zzu1zBBebzzjeMgmebVX1/m87+yCbl yzG1d5Lv+2NSAfHypZS1dmGB5pYluJSkAhNBLYVIMUd0EiExk/2KZSULqorGgazPjYvg uH975L/TZrbGzSTA33GLjmNo+UbVljDULqUHCghy4jme0WHa6iPomgPp0aEHRfB+f5PM 93plaVDaSlDzK9kUlEH6zGRu3nxeZgfEf2A4xqIhUcdnK5lLF2LaxIHXyCep8OwYcZ0X wgSQ== X-Gm-Message-State: ALoCoQncnp9Up8ZZcaWVmzJzNcmgXl4l+hXbGNDV4VGMLfzpFhLlHwmBFQlzErhTP/E0/wSplPP+ X-Received: by 10.180.89.194 with SMTP id bq2mr940244wib.4.1423798408823; Thu, 12 Feb 2015 19:33:28 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.204.39 with SMTP id kv7ls243946lac.76.gmail; Thu, 12 Feb 2015 19:33:28 -0800 (PST) X-Received: by 10.112.181.165 with SMTP id dx5mr5917812lbc.89.1423798408472; Thu, 12 Feb 2015 19:33:28 -0800 (PST) Received: from mail-lb0-f173.google.com (mail-lb0-f173.google.com. [209.85.217.173]) by mx.google.com with ESMTPS id zh11si619426lbb.82.2015.02.12.19.33.28 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Feb 2015 19:33:28 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.173 as permitted sender) client-ip=209.85.217.173; Received: by mail-lb0-f173.google.com with SMTP id n10so13272785lbv.4 for ; Thu, 12 Feb 2015 19:33:28 -0800 (PST) X-Received: by 10.112.85.68 with SMTP id f4mr6088387lbz.106.1423798408348; Thu, 12 Feb 2015 19:33:28 -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 h5csp819526lbj; Thu, 12 Feb 2015 19:33:27 -0800 (PST) X-Received: by 10.140.84.136 with SMTP id l8mr17385861qgd.86.1423798406945; Thu, 12 Feb 2015 19:33:26 -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 d10si1432049qga.93.2015.02.12.19.33.25 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 12 Feb 2015 19:33:26 -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 1YM70M-0001qb-Sn; Fri, 13 Feb 2015 03:33:22 +0000 Received: from mail-qg0-f43.google.com ([209.85.192.43]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YM70H-0001qL-EV for lng-odp@lists.linaro.org; Fri, 13 Feb 2015 03:33:17 +0000 Received: by mail-qg0-f43.google.com with SMTP id i50so11472954qgf.2 for ; Thu, 12 Feb 2015 19:33:12 -0800 (PST) X-Received: by 10.140.144.136 with SMTP id 130mr1369482qhq.55.1423798392218; Thu, 12 Feb 2015 19:33:12 -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 s63sm5991798qgd.26.2015.02.12.19.33.09 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 12 Feb 2015 19:33:11 -0800 (PST) From: Petri Savolainen To: lng-odp@lists.linaro.org Date: Fri, 13 Feb 2015 05:32:46 +0200 Message-Id: <1423798368-16597-1-git-send-email-petri.savolainen@linaro.org> X-Mailer: git-send-email 2.3.0 X-Topics: patch Subject: [lng-odp] [PATCH v3 1/3] 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.217.173 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. * seg_len Control number of packet data bytes that are stored in the first segment of a packet. * num Define maximum number of packets (that are 'len' bytes or smaller). * len Required packet length that the pool must provide 'num' packets Signed-off-by: Petri Savolainen --- include/odp/api/pool.h | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/include/odp/api/pool.h b/include/odp/api/pool.h index b8c0f2e..66dc70e 100644 --- a/include/odp/api/pool.h +++ b/include/odp/api/pool.h @@ -60,13 +60,27 @@ 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 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 + smaller. */ + uint32_t len; /**< Minimum packet length that the + pool must provide 'num' + packets. The number of packets + may be less than 'num' when + packets are larger than 'len'. + Use 0 for default. + */ } pkt; -*/ struct { uint32_t __res1; /* Keep struct identical to buf, */ uint32_t __res2; /* until pool implementation is fixed*/