ring: get size in memory
authorOlivier Matz <olivier.matz@6wind.com>
Fri, 9 May 2014 10:14:52 +0000 (12:14 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 13 May 2014 12:35:06 +0000 (14:35 +0200)
commita182620042aa297ba1dc88f3089537d94b51bcf9
tree8d55637f80acded18eae742df8cd3460d9a0f390
parent5d8751b83bb9faeeb2730b3e84254b6b7a1648cb
ring: get size in memory

Add a function that returns the amount of memory occupied by a rte_ring
structure and its object table. This commit prepares the next one that
will allow to allocate a ring dynamically.

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