From patchwork Thu Jun 4 04:22:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 49509 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f69.google.com (mail-wg0-f69.google.com [74.125.82.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1686720DDC for ; Thu, 4 Jun 2015 04:23:48 +0000 (UTC) Received: by wgme6 with SMTP id e6sf7177104wgm.3 for ; Wed, 03 Jun 2015 21:23:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to: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=QdYYdA5heNUBMNd6AhW43pD41hKVHJ9/BhmEK4XzqoE=; b=B3+Q9Xj43mXP9svOfF9KiNqGG5CxyPmgDRdsJrWujEZk49+11bSyrIXddgI1IMNn/h eRmNWPueA9pJ/BSZU2JCusF3gqszJ7gdIb15PKo9ZRFK5WCaDSGQaOLU4mhUyPAJHm3Z SBv2wdyYIxRy3BYxfNa29IQ+OYBkp0xUK+/QPseKoQ1vvbn++ZVDxmuVj8nKBS+0kdZW BrOKfe0lGKe8Df8tNfYcvvz0XNwxc9kPP49msFG0ggUw8QPVzQ3q8TNs+XJ/jBmVlO8t 9PMn0ZrMm2jFfMMSvV0TqDTax6/ixwShGk5Aqm2PzloPNwxySFcnr5ySE6iBtscDNekS Cqag== X-Gm-Message-State: ALoCoQl6ae9i6jO5VqXSnXCzYu+uHp68TIB6OaVMHWmfYOnelgmwQnWo5TaMumCcNJNh6ZkPGA6F X-Received: by 10.180.187.175 with SMTP id ft15mr326308wic.4.1433391827424; Wed, 03 Jun 2015 21:23:47 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.225.167 with SMTP id rl7ls154908lac.74.gmail; Wed, 03 Jun 2015 21:23:47 -0700 (PDT) X-Received: by 10.112.171.68 with SMTP id as4mr35417562lbc.64.1433391827258; Wed, 03 Jun 2015 21:23:47 -0700 (PDT) Received: from mail-la0-f44.google.com (mail-la0-f44.google.com. [209.85.215.44]) by mx.google.com with ESMTPS id aw7si739501lbc.80.2015.06.03.21.23.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Jun 2015 21:23:47 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) client-ip=209.85.215.44; Received: by labpy14 with SMTP id py14so22983946lab.0 for ; Wed, 03 Jun 2015 21:23:47 -0700 (PDT) X-Received: by 10.152.36.161 with SMTP id r1mr35316729laj.88.1433391827134; Wed, 03 Jun 2015 21:23:47 -0700 (PDT) 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.108.230 with SMTP id hn6csp295818lbb; Wed, 3 Jun 2015 21:23:46 -0700 (PDT) X-Received: by 10.140.40.168 with SMTP id x37mr40097406qgx.24.1433391825667; Wed, 03 Jun 2015 21:23:45 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id k109si2893372qgf.32.2015.06.03.21.23.44; Wed, 03 Jun 2015 21:23:45 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Received: by lists.linaro.org (Postfix, from userid 109) id B4CE161EDB; Thu, 4 Jun 2015 04:23:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from ip-10-142-244-252.ec2.internal (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id B119C61E31; Thu, 4 Jun 2015 04:23:22 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 8226C62013; Thu, 4 Jun 2015 04:23:20 +0000 (UTC) Received: from mail-oi0-f44.google.com (mail-oi0-f44.google.com [209.85.218.44]) by lists.linaro.org (Postfix) with ESMTPS id 8929161EF9 for ; Thu, 4 Jun 2015 04:22:57 +0000 (UTC) Received: by oihb142 with SMTP id b142so22988903oih.3 for ; Wed, 03 Jun 2015 21:22:57 -0700 (PDT) X-Received: by 10.182.128.6 with SMTP id nk6mr27331254obb.70.1433391777171; Wed, 03 Jun 2015 21:22:57 -0700 (PDT) Received: from localhost.localdomain (cpe-24-28-70-239.austin.res.rr.com. [24.28.70.239]) by mx.google.com with ESMTPSA id lz12sm705213oeb.4.2015.06.03.21.22.56 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 03 Jun 2015 21:22:56 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Wed, 3 Jun 2015 23:22:47 -0500 Message-Id: <1433391767-26775-3-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1433391767-26775-1-git-send-email-bill.fischofer@linaro.org> References: <1433391767-26775-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv2 3/3] api: packet: clarify valid len range on alloc X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 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" 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.44 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 Signed-off-by: Bill Fischofer --- include/odp/api/packet.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/odp/api/packet.h b/include/odp/api/packet.h index 3a454b5..5af4b1c 100644 --- a/include/odp/api/packet.h +++ b/include/odp/api/packet.h @@ -65,7 +65,10 @@ extern "C" { * other packet metadata are set to their default values. * * @param pool Pool handle - * @param len Packet data length + * @param len Packet data length. Valid values are 0 through + * ODP_CONFIG_PACKET_BUF_LEN_MAX minus + * ODP_CONFIG_PACKET_HEADROOM minus + * ODP_CONFIG_PACKET_TAILROOM * * @return Handle of allocated packet * @retval ODP_PACKET_INVALID Packet could not be allocated