ring: support configurable element size
authorHonnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Sat, 18 Jan 2020 19:32:43 +0000 (13:32 -0600)
committerDavid Marchand <david.marchand@redhat.com>
Sun, 19 Jan 2020 18:32:48 +0000 (19:32 +0100)
commitcc4b218790f6e91336e51a27f1ee9ce3cc73dd85
treed79f10f3a6b661507491a108a428170ce7c38e60
parent542cf18b99be0a2d4ab2b075c4b7417f3f4b4975
ring: support configurable element size

Current APIs assume ring elements to be pointers. However, in many
use cases, the size can be different. Add new APIs to support
configurable ring element sizes.

Signed-off-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Reviewed-by: Dharmik Thakkar <dharmik.thakkar@arm.com>
Reviewed-by: Gavin Hu <gavin.hu@arm.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
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_elem.h [new file with mode: 0644]
lib/librte_ring/rte_ring_version.map