Re: [dpdk-dev] [PATCH v2 07/14] ring: make bulk and burst fn return vals consistent

2017-03-14 Thread Olivier Matz
On Wed, 8 Mar 2017 12:08:42 +, Bruce Richardson wrote: > On Wed, Mar 08, 2017 at 11:22:40AM +0100, Olivier MATZ wrote: > > On Tue, 7 Mar 2017 11:32:10 +, Bruce Richardson > > wrote: > > > The bulk fns for rings returns 0 for all elements enqueued and negative > > > for no space. Chan

Re: [dpdk-dev] [PATCH v2 07/14] ring: make bulk and burst fn return vals consistent

2017-03-08 Thread Bruce Richardson
On Wed, Mar 08, 2017 at 11:22:40AM +0100, Olivier MATZ wrote: > On Tue, 7 Mar 2017 11:32:10 +, Bruce Richardson > wrote: > > The bulk fns for rings returns 0 for all elements enqueued and negative > > for no space. Change that to make them consistent with the burst functions > > in returning

Re: [dpdk-dev] [PATCH v2 07/14] ring: make bulk and burst fn return vals consistent

2017-03-08 Thread Olivier MATZ
On Tue, 7 Mar 2017 11:32:10 +, Bruce Richardson wrote: > The bulk fns for rings returns 0 for all elements enqueued and negative > for no space. Change that to make them consistent with the burst functions > in returning the number of elements enqueued/dequeued, i.e. 0 or N. > This change al

[dpdk-dev] [PATCH v2 07/14] ring: make bulk and burst fn return vals consistent

2017-03-07 Thread Bruce Richardson
The bulk fns for rings returns 0 for all elements enqueued and negative for no space. Change that to make them consistent with the burst functions in returning the number of elements enqueued/dequeued, i.e. 0 or N. This change also allows the return value from enq/deq to be used directly without a