From: Honnappa Nagarahalli Date: Thu, 14 Oct 2021 20:55:50 +0000 (-0500) Subject: ring: fix name size in ring structure X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=0ff26704b4e35b690f2e6a94d0ccbd8da90c8825;p=dpdk.git ring: fix name size in ring structure Use correct define for the name array size. The change breaks ABI and hence cannot be backported to stable branches. Fixes: 38c9817ee1d8 ("mempool: adjust name size in related data types") Signed-off-by: Honnappa Nagarahalli Acked-by: Konstantin Ananyev --- diff --git a/lib/ring/rte_ring_core.h b/lib/ring/rte_ring_core.h index 31f7200fa9..46ad584f9c 100644 --- a/lib/ring/rte_ring_core.h +++ b/lib/ring/rte_ring_core.h @@ -118,12 +118,7 @@ struct rte_ring_hts_headtail { * a problem. */ struct rte_ring { - /* - * Note: this field kept the RTE_MEMZONE_NAMESIZE size due to ABI - * compatibility requirements, it could be changed to RTE_RING_NAMESIZE - * next time the ABI changes - */ - char name[RTE_MEMZONE_NAMESIZE] __rte_cache_aligned; + char name[RTE_RING_NAMESIZE] __rte_cache_aligned; /**< Name of the ring. */ int flags; /**< Flags supplied at creation. */ const struct rte_memzone *memzone;