numam-dpdk/lib/librte_ring
Gavin Hu 272d87b01b ring: add reset function for flushing
Currently, the flush is done by dequeuing the ring in a while loop. It is
much simpler to flush the queue by resetting the head and tail indices.

Signed-off-by: Gavin Hu <gavin.hu@arm.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
2019-07-17 19:51:56 +02:00
..
Makefile ring: relax alignment constraint on ring structure 2018-04-18 00:24:22 +02:00
meson.build ring: add library version to meson build 2018-10-25 14:30:05 +02:00
rte_ring_c11_mem.h ring/c11: relax ordering for load and store of the head 2018-11-13 17:00:58 +01:00
rte_ring_generic.h ring: enforce reading tail before slots 2019-03-28 01:22:04 +01:00
rte_ring_version.map ring: add reset function for flushing 2019-07-17 19:51:56 +02:00
rte_ring.c ring: add reset function for flushing 2019-07-17 19:51:56 +02:00
rte_ring.h ring: add reset function for flushing 2019-07-17 19:51:56 +02:00