ring: introduce HTS ring mode
authorKonstantin Ananyev <konstantin.ananyev@intel.com>
Mon, 20 Apr 2020 12:28:26 +0000 (13:28 +0100)
committerDavid Marchand <david.marchand@redhat.com>
Tue, 21 Apr 2020 10:52:55 +0000 (12:52 +0200)
commit1cc363b8ce06e855305c6f0e9a9c63bb42a8ac28
tree03092911f91fb7ae47a0a4f82f6041486902106a
parenta9e23c7f0b09bd3184181fe756376806154ab756
ring: introduce HTS ring mode

Introduce head/tail sync mode for MT ring synchronization.
In that mode enqueue/dequeue operation is fully serialized:
only one thread at a time is allowed to perform given op.
Suppose to reduce stall times in case when ring is used on
overcommitted cpus (multiple active threads on the same cpu).

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.c
lib/librte_ring/rte_ring.h
lib/librte_ring/rte_ring_core.h
lib/librte_ring/rte_ring_elem.h
lib/librte_ring/rte_ring_hts.h [new file with mode: 0644]
lib/librte_ring/rte_ring_hts_c11_mem.h [new file with mode: 0644]