From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Wiles, Roger Keith" Subject: Bulk dequeue of packets and the returned values, question Date: Sun, 28 Sep 2014 18:04:42 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable To: "" Return-path: Content-Language: en-US Content-ID: <23A4CEB134AEAD4A9119AF14925F2A5F@local> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" 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