From: Andrew Rybchenko Date: Wed, 13 Oct 2021 08:57:23 +0000 (+0300) Subject: mempool: fix name size in mempool structure X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=a87a0c0d1ae976b22b3ee34340b2a6790a9b0dd4;p=dpdk.git mempool: fix name size in mempool structure Use correct define as a name array size. The change breaks ABI and therefore cannot be backported to stable branches. Fixes: 38c9817ee1d8 ("mempool: adjust name size in related data types") Signed-off-by: Andrew Rybchenko Reviewed-by: David Marchand --- diff --git a/lib/mempool/rte_mempool.h b/lib/mempool/rte_mempool.h index f57ecbd6fc..04b14d7ae9 100644 --- a/lib/mempool/rte_mempool.h +++ b/lib/mempool/rte_mempool.h @@ -209,12 +209,7 @@ struct rte_mempool_info { * The RTE mempool structure. */ struct rte_mempool { - /* - * Note: this field kept the RTE_MEMZONE_NAMESIZE size due to ABI - * compatibility requirements, it could be changed to - * RTE_MEMPOOL_NAMESIZE next time the ABI changes - */ - char name[RTE_MEMZONE_NAMESIZE]; /**< Name of mempool. */ + char name[RTE_MEMPOOL_NAMESIZE]; /**< Name of mempool. */ RTE_STD_C11 union { void *pool_data; /**< Ring or pool to store objects. */