From patchwork Thu May 28 12:18:42 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zoltan Kiss X-Patchwork-Id: 49077 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f72.google.com (mail-wg0-f72.google.com [74.125.82.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 51279218F1 for ; Thu, 28 May 2015 12:19:06 +0000 (UTC) Received: by wgla2 with SMTP id a2sf9761134wgl.1 for ; Thu, 28 May 2015 05:19:05 -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: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=EkmFbyDm5XcKaifABCIAxOPHrDns4IcC3GgsmYfz99I=; b=UftX+vewtjXSqBBP0iGSE3Ffs9sxOTDMeC3uOa7FnVZz0LdQG1dwhKTXFH24nBWjh4 old9hV7Tm1oINt6/CxtlXUOMOvNN9//Pmrzjg0ZYOj89U7qi88GT0z4mUQ/ApLRNkN2Q GbBbcHsAwCY1/isE41ipXGgRT7tbN4REsbgoe1Ehut17gWrXL5KckbKMcyo9OA80GCb5 E+NLh4lquc+4ePpxFSxxFjoc0ShsIrdhvSvcudSDldKaUnphktWAf8QxWCkA4ALgSiaO tkD0g5a/OpsJGQ2V2XjNDogMHTPjYUvfM2BmPJOR8xtvj2A4wh0vFeNqJyVXD+grSW56 UxfA== X-Gm-Message-State: ALoCoQkpiw9zGI0SbzMNUdRrOoo3+8v2dQv+KU0ttC5qsIBc6fw2lGkL9mKB66dsFVMqFEsCa4+A X-Received: by 10.180.89.231 with SMTP id br7mr7584919wib.0.1432815545507; Thu, 28 May 2015 05:19:05 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.42.206 with SMTP id q14ls155393lal.58.gmail; Thu, 28 May 2015 05:19:05 -0700 (PDT) X-Received: by 10.112.137.232 with SMTP id ql8mr2456609lbb.121.1432815545320; Thu, 28 May 2015 05:19:05 -0700 (PDT) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com. [209.85.215.52]) by mx.google.com with ESMTPS id kz10si1794607lab.140.2015.05.28.05.19.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 May 2015 05:19:05 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) client-ip=209.85.215.52; Received: by labpy14 with SMTP id py14so18371125lab.0 for ; Thu, 28 May 2015 05:19:05 -0700 (PDT) X-Received: by 10.112.155.197 with SMTP id vy5mr2446898lbb.29.1432815545088; Thu, 28 May 2015 05:19:05 -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 hn6csp1111489lbb; Thu, 28 May 2015 05:19:04 -0700 (PDT) X-Received: by 10.140.108.201 with SMTP id j67mr2642755qgf.79.1432815543535; Thu, 28 May 2015 05:19:03 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id j37si2140966qge.110.2015.05.28.05.19.02; Thu, 28 May 2015 05:19:03 -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 A119F61E7F; Thu, 28 May 2015 12:19:02 +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_H3, RCVD_IN_MSPIKE_WL, 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 BEEC161E4F; Thu, 28 May 2015 12:19:00 +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 4BDB761E4F; Thu, 28 May 2015 12:18:59 +0000 (UTC) Received: from mail-wi0-f173.google.com (mail-wi0-f173.google.com [209.85.212.173]) by lists.linaro.org (Postfix) with ESMTPS id 76A2161E4F for ; Thu, 28 May 2015 12:18:58 +0000 (UTC) Received: by wizk4 with SMTP id k4so144661713wiz.1 for ; Thu, 28 May 2015 05:18:57 -0700 (PDT) X-Received: by 10.194.57.40 with SMTP id f8mr4996416wjq.86.1432815537158; Thu, 28 May 2015 05:18:57 -0700 (PDT) Received: from localhost.localdomain ([90.152.119.35]) by mx.google.com with ESMTPSA id kc4sm3124659wjc.2.2015.05.28.05.18.56 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 28 May 2015 05:18:56 -0700 (PDT) From: Zoltan Kiss To: lng-odp@lists.linaro.org Date: Thu, 28 May 2015 13:18:42 +0100 Message-Id: <1432815522-2925-1-git-send-email-zoltan.kiss@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Subject: [lng-odp] [PATCH] api-next: packet_io: clarify what happens when not all packets are sent 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: zoltan.kiss@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.52 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 Currently our examples are not handling this situation as well. Signed-off-by: Zoltan Kiss --- include/odp/api/packet_io.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/odp/api/packet_io.h b/include/odp/api/packet_io.h index 89356a6..b97b2b8 100644 --- a/include/odp/api/packet_io.h +++ b/include/odp/api/packet_io.h @@ -111,7 +111,9 @@ int odp_pktio_recv(odp_pktio_t pktio, odp_packet_t pkt_table[], int len); * @param pkt_table[] Array of packets to send * @param len length of pkt_table[] * - * @return Number of packets sent + * @return Number of packets sent. If it is less than 'len', the remaining + * packets at the end of pkt_table[] are left intact, and caller has to take + * care of them. * @retval <0 on failure */ int odp_pktio_send(odp_pktio_t pktio, odp_packet_t pkt_table[], int len);