ring: add zero copy API
authorHonnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Sun, 25 Oct 2020 05:45:49 +0000 (00:45 -0500)
committerDavid Marchand <david.marchand@redhat.com>
Thu, 29 Oct 2020 13:13:31 +0000 (14:13 +0100)
commit47bec9a5ca9f0bb2726427ffbac462b2a82d69d1
tree8a928567f1c0ffaad96c0a9d4f4fd178e8d46c02
parent6c3416659f77ce882a10e86d90cf398b83894102
ring: add zero copy API

Add zero-copy APIs. These APIs provide the capability to
copy the data to/from the ring memory directly, without
having a temporary copy (for ex: an array of mbufs on
the stack). Use cases that involve copying large amount
of data to/from the ring can benefit from these APIs.

Signed-off-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Reviewed-by: Dharmik Thakkar <dharmik.thakkar@arm.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
doc/guides/prog_guide/ring_lib.rst
doc/guides/rel_notes/release_20_11.rst
lib/librte_ring/meson.build
lib/librte_ring/rte_ring_elem.h
lib/librte_ring/rte_ring_peek_zc.h [new file with mode: 0644]