> These 2 patches adds 2 new functions that permits to initialize and use > a rte_ring anywhere in memory. > > Before this patches, only rte_ring_create() was available. This function > allocates a rte_memzone (that cannot be freed) and initializes a ring > inside. > > This series allows to do the following: > size = rte_ring_get_memsize(1024); > r = malloc(size); > rte_ring_init(r, "my_ring", 1024, 0); > > > Changes included in v2: > - fix syntax for functions definitions in rte_ring_get_memsize() > - use RTE_ALIGN() to get nearest higher multiple of cache line size > - fix description of rte_ring_init() in doxygen comments > > Olivier Matz (2): > ring: introduce rte_ring_get_memsize() > ring: introduce rte_ring_init()
Acked-by: Konstantin Ananyev <konstantin.ananyev at intel.com> Applied for version 1.7.0 -- Thomas