ring: allow to initialize without memzone
authorOlivier Matz <olivier.matz@6wind.com>
Fri, 9 May 2014 10:14:53 +0000 (12:14 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 13 May 2014 12:40:09 +0000 (14:40 +0200)
commit1d64e46eb8c4fb8085513e9be824f2377b9c70c7
treee6ab7680c5a5a36b494a0286ae99e1b411aa813e
parenta182620042aa297ba1dc88f3089537d94b51bcf9
ring: allow to initialize without memzone

Allow to initialize a ring in an already allocated memory. The rte_ring_create()
function that allocates a ring in a rte_memzone is still available and now uses
the new rte_ring_init() function in order to factorize the code.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
lib/librte_ring/rte_ring.c
lib/librte_ring/rte_ring.h