numam-dpdk/examples/load_balancer
Bruce Richardson ecaed092b6 ring: return remaining entry count when dequeuing
Add an extra parameter to the ring dequeue burst/bulk functions so that
those functions can optionally return the amount of remaining objs in the
ring. This information can be used by applications in a number of ways,
for instance, with single-consumer queues, it provides a max
dequeue size which is guaranteed to work.

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:32:20 +02:00
..
config.c examples: fix optind reset 2017-03-10 15:38:47 +01:00
init.c ethdev: use constants for link state 2016-04-01 21:38:34 +02:00
main.c remove unused ring includes 2016-09-16 10:16:02 +02:00
main.h apps: fix default mbuf size 2015-05-11 15:51:14 +02:00
Makefile remove trailing whitespaces 2014-06-11 00:29:34 +02:00
runtime.c ring: return remaining entry count when dequeuing 2017-03-29 22:32:20 +02:00