numam-dpdk/lib/librte_mempool
Bruce Richardson cfa7c9e6fc ring: make bulk and burst return values consistent
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 branch for error checking.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Reviewed-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
2017-03-29 22:25:37 +02:00
..
Makefile mk: optimize directory dependencies 2017-03-27 23:28:43 +02:00
rte_mempool_ops.c mempool: fix missing registration of free function 2016-07-21 23:15:47 +02:00
rte_mempool_ring.c ring: make bulk and burst return values consistent 2017-03-29 22:25:37 +02:00
rte_mempool_stack.c mempool: fix stack handler dequeue 2017-01-29 23:38:33 +01:00
rte_mempool_version.map mempool: remove deprecated count functions 2017-02-21 12:05:46 +01:00
rte_mempool.c mempool: remove deprecated count functions 2017-02-21 12:05:46 +01:00
rte_mempool.h mempool: remove deprecated get and put functions 2017-02-21 12:05:46 +01:00