14fbffb0aa
Add an extra parameter to the ring enqueue burst/bulk functions so that those functions can optionally return the amount of free space in the ring. This information can be used by applications in a number of ways, for instance, with single-producer queues, it provides a max enqueue size which is guaranteed to work. It can also be used to implement watermark functionality in apps, replacing the older functionality with a more flexible version, which enables apps to implement multiple watermark thresholds, rather than just one. 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> |
||
---|---|---|
.. | ||
Makefile | ||
rte_port_ethdev.c | ||
rte_port_ethdev.h | ||
rte_port_fd.c | ||
rte_port_fd.h | ||
rte_port_frag.c | ||
rte_port_frag.h | ||
rte_port_kni.c | ||
rte_port_kni.h | ||
rte_port_ras.c | ||
rte_port_ras.h | ||
rte_port_ring.c | ||
rte_port_ring.h | ||
rte_port_sched.c | ||
rte_port_sched.h | ||
rte_port_source_sink.c | ||
rte_port_source_sink.h | ||
rte_port_version.map | ||
rte_port.h |