[dpdk-dev] Bulk dequeue of packets and the returned values, question
Neil Horman
nhorman at tuxdriver.com
Sun Sep 28 22:44:01 CEST 2014
On Sun, Sep 28, 2014 at 06:04:42PM +0000, Wiles, Roger Keith wrote:
> 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?
>
Yes, that seems right.
> 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?
>
I agree, I don't see why the behavior is bifurcated the way it is, its
nonsensical.
Neil
> Thanks
> ++Keith
>
> Keith Wiles, Principal Technologist with CTO office, Wind River mobile 972-213-5533
>
>
More information about the dev
mailing list