ring: prepare ring to allow new sync schemes
authorKonstantin Ananyev <konstantin.ananyev@intel.com>
Mon, 20 Apr 2020 12:28:23 +0000 (13:28 +0100)
committerDavid Marchand <david.marchand@redhat.com>
Tue, 21 Apr 2020 09:34:09 +0000 (11:34 +0200)
commitebff988d0c70f13eb40973f81c0939842f41abb2
tree346416df51090ac8780448d9b6cd7f857c237aa9
parentbf28df24e915dbe62a94e38a7c2280a8929b846b
ring: prepare ring to allow new sync schemes

To make these preparations two main things are done:
- Change from *single* to *sync_type* to allow different
  synchronisation schemes to be applied.
  Mark *single* as deprecated in comments.
  Add new functions to allow user to query ring sync types.
  Replace direct access to *single* with appropriate function call.
- Move actual rte_ring and related structures definitions into a
  separate file: <rte_ring_core.h>. It allows to refer contents
  of <rte_ring_elem.h> from <rte_ring.h> without introducing a
  circular dependency.

Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Acked-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
app/test/test_pdump.c
doc/guides/prog_guide/ring_lib.rst
lib/librte_pdump/rte_pdump.c
lib/librte_port/rte_port_ring.c
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 [new file with mode: 0644]
lib/librte_ring/rte_ring_elem.h