From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail1.windriver.com (mail1.windriver.com [147.11.146.13]) by dpdk.org (Postfix) with ESMTP id 9610A7E14 for ; Sun, 28 Sep 2014 19:58:11 +0200 (CEST) Received: from ALA-HCB.corp.ad.wrs.com (ala-hcb.corp.ad.wrs.com [147.11.189.41]) by mail1.windriver.com (8.14.9/8.14.5) with ESMTP id s8SI4hJi027653 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for ; Sun, 28 Sep 2014 11:04:43 -0700 (PDT) Received: from ALA-MBB.corp.ad.wrs.com ([169.254.1.18]) by ALA-HCB.corp.ad.wrs.com ([147.11.189.41]) with mapi id 14.03.0174.001; Sun, 28 Sep 2014 11:04:42 -0700 From: "Wiles, Roger Keith" To: "" Thread-Topic: Bulk dequeue of packets and the returned values, question Thread-Index: AQHP20atQjlFoqydJUKrU2hrMxRWCw== Date: Sun, 28 Sep 2014 18:04:42 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.25.40.166] Content-Type: text/plain; charset="Windows-1252" Content-ID: <23A4CEB134AEAD4A9119AF14925F2A5F@local> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: [dpdk-dev] Bulk dequeue of packets and the returned values, question X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Sep 2014 17:58:12 -0000 I am also looking at the bulk dequeue routines, which the ring can be fixed= or variable. On fixed < 0 on error is returned and 0 if successful. On a = variable ring < 0 on error or n on success, but I think n can be zero in th= e variable case, correct? If these are true then why not have the routines return < 0 on error and >= =3D 0 on success. Which means a dequeue from a fixed ring would return only= =92requested size n=92 or < 0 if you error off the 0 case. The 0 case coul= d be OK, if you allow zero to be return on a empty ring for the fixed ring = case. Does this make sense to anyone? Thanks ++Keith Keith Wiles, Principal Technologist with CTO office, Wind River mobile 972-= 213-5533