ring: introduce peek style API
authorKonstantin Ananyev <konstantin.ananyev@intel.com>
Mon, 20 Apr 2020 12:28:28 +0000 (13:28 +0100)
committerDavid Marchand <david.marchand@redhat.com>
Tue, 21 Apr 2020 10:52:55 +0000 (12:52 +0200)
commit664ff4b1729b090ca13e8c76897a2914fd00be20
tree7f60675ecb6d44f94279c4fecd05ed66afbc02c1
parent1cf65e4341a74abc3977f27b2042fc3ab390af99
ring: introduce peek style API

For rings with producer/consumer in RTE_RING_SYNC_ST, RTE_RING_SYNC_MT_HTS
mode, provide an ability to split enqueue/dequeue operation
into two phases:
      - enqueue/dequeue start
      - enqueue/dequeue finish
That allows user to inspect objects in the ring without removing
them from it (aka MT safe peek).

Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Acked-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
doc/guides/prog_guide/ring_lib.rst
doc/guides/rel_notes/release_20_05.rst
lib/librte_ring/Makefile
lib/librte_ring/meson.build
lib/librte_ring/rte_ring.h
lib/librte_ring/rte_ring_elem.h
lib/librte_ring/rte_ring_peek.h [new file with mode: 0644]
lib/librte_ring/rte_ring_peek_c11_mem.h [new file with mode: 0644]