dev.dpdk.org archive mirror
 help / color / mirror / Atom feed
* Bulk dequeue of packets and the returned values, question
@ 2014-09-28 18:04 Wiles, Roger Keith
       [not found] ` <F1520FAF-173B-44AA-8A2F-131520089EC1-CWA4WttNNZF54TAoqtyWWQ@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Wiles, Roger Keith @ 2014-09-28 18:04 UTC (permalink / raw)
  To: <dev-VfR2kkLFssw@public.gmane.org>

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 the variable case, correct?

If these are true then why not have the routines return  < 0 on error and >= 0 on success. Which means a dequeue from a fixed ring would return only ’requested size n’ or < 0 if you error off the 0 case. The 0 case could 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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-09-29 14:57 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-28 18:04 Bulk dequeue of packets and the returned values, question Wiles, Roger Keith
     [not found] ` <F1520FAF-173B-44AA-8A2F-131520089EC1-CWA4WttNNZF54TAoqtyWWQ@public.gmane.org>
2014-09-28 20:44   ` Neil Horman
2014-09-28 22:23   ` Venkatesan, Venky
     [not found]     ` <54288A70.9020902-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2014-09-28 22:36       ` Neil Horman
2014-09-28 23:06       ` Wiles, Roger Keith
     [not found]         ` <F188E589-7C3A-44D6-9DBB-F9908FD1FEAC-CWA4WttNNZF54TAoqtyWWQ@public.gmane.org>
2014-09-29 12:10           ` Bruce Richardson
2014-09-29 12:26             ` Neil Horman
2014-09-29 12:30             ` Ananyev, Konstantin
     [not found]               ` <2601191342CEEE43887BDE71AB97725821387594-kPTMFJFq+rGvNW/NfzhIbrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2014-09-29 14:57                 ` Wiles, Roger Keith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).